how to get order guide variable data on request workflow

Deepthi13
Tera Expert

Hi team,

I have a variable on order guide, i need that variable value which is given by user in to workflow.

note: my workflow is on request table.

currently i am using script like below, but i am getting undefined in logs

 var input = workflow. variables. approver;
gs.log('@@@'+input);

1 ACCEPTED SOLUTION

Hey Deepthi,

Check out this link - https://community.servicenow.com/community?id=community_question&sys_id=65170fe5db1cdbc01dcaf3231f96...

Another one that should help - https://community.servicenow.com/community?id=community_question&sys_id=181f7a29db58dbc01dcaf3231f96...

'Order guide' really isn't an item that's ordered at all.  It never exists as an actual record in the database for a flow to operate on, it's just a UI form that displays the appropriate catalog items to a user.  Everything related to the order guide disappears as soon as you select 'Choose options' and move from the initial order guide screen to the catalog item tabs.

View solution in original post

3 REPLIES 3

Priyanka Gupta
Mega Guru

Hi Deepthi,

Try-

current.variables.approver

Priyanka

But priyanka this variable is on order guide form. My wordlow is on request table and i already tried that i am getting undefined in log

Hey Deepthi,

Check out this link - https://community.servicenow.com/community?id=community_question&sys_id=65170fe5db1cdbc01dcaf3231f96...

Another one that should help - https://community.servicenow.com/community?id=community_question&sys_id=181f7a29db58dbc01dcaf3231f96...

'Order guide' really isn't an item that's ordered at all.  It never exists as an actual record in the database for a flow to operate on, it's just a UI form that displays the appropriate catalog items to a user.  Everything related to the order guide disappears as soon as you select 'Choose options' and move from the initial order guide screen to the catalog item tabs.