Flow Designer - How can I access output variable from Script Step in f(x) script in a activity?

John_123_Snow
Mega Expert

Since ServiceNow lacks their documentation...I will have to ask here,

How can I access output variable in a Flow Designer in f(x) function of an Activity?

find_real_file.png

1 ACCEPTED SOLUTION

@John.123.Snow 

Refer sample example below

1) My step 2 is custom action and it has output variable

2) how it can be used to fetch the output variable refer below

fd_data._2__list_collector_convert_to_array.variable

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

9 REPLIES 9

thanks, this works, BUT why when I return sysIDs of groups, it doesnt trigger the approvals?

Thanks for confirming that my solution of dot walking to the step worked.

what are you returning from the step 2

refer below link for reference on scripting ask for approval

Flow Designer and scripting Ask for Approval

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@John.123.Snow 

Let me know if I have answered your original question.

Please mark my response as correct and helpful.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi John - Don't use fd_data.trigger. It should be fd_data.THEN SELECT THE FIRST STEP ACTION (get catalog variable name). FOLLOWED BY VARIABLE NAME.

https://docs.servicenow.com/bundle/paris-servicenow-platform/page/administer/flow-designer/concept/i...

@John.123.Snow - Please let us know if you have any additional questions.