Approval Request. Access to Service Dialog inputs from the Approval methond

Hi.

I have a Catalog Item with a Service Dialog that starts “/Service/Provisioning/StateMachines/ServiceProvision_Template/default”.

In the apprloval, in the method " / Service / Provisioning / StateMachines / ServiceProvisionRequestApproval / approve_request" I want to gather some dialog input options to decide if this request needs approval or not.

How can I access to the the dialog input options?

I have tried with: (“service” is the name of the text box)
$evm.object[“service”]
$evm.root[“service”]
$evm.root[“dialog_service”]

Thank you.

Hi

From the service approval state machine the dialog options are available as $evm.root['miq_request'].options[:dialog]

Hope this helps,
pemcg

Thank you.

textboxes = $evm.root[‘miq_request’].options[:dialog].inspect
$evm.log(“info”, ">>>>>>>: " + textboxes)
{“dialog_service”=>“service1”, “dialog_env”=>“env1”, “dialog_provider”=>nil}

service, env and provider are the names of the text boxes in the dialog