Get application ID and service ID from variable