Script step's input variable value returning to "{{undefined}}" in Zurich patcg 7 Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Dear all,
In my flow action I define an inputs variables as seen below
Then I have script steps where I read those input values to create a records.
When I test that script before publishing and then enter a value for description for instance, then in my script By login the value return I get :
INPUT DESCRIPTION : undefined
Does it happen the same to you or did I miss something ?
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
55m ago
Hi @User687957
In ServiceNow Flow Designer, undefined script input values typically happen when the Script Step inputs aren’t properly mapped to the Action’s input variables.
Make sure in script step ( just below of your input as given in the screen shot you’ve used the data pill picker to correctly link input.variable to the corresponding action.variable in the step configuration.
Sample screen shot:
Map it properly, it will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
44m ago - last edited 40m ago
Hello @Tanushree Maiti ,
Thanks that works. I did not know that I need to map again the first input variables to the script inputs variable. That was not clear, I thought the script was smart enough to get the inputs variables from its up level
For clarification what are those Action Inputs comming from then vs the Script steps inputs variable ?
In my context, the Action flow is called from a AI Agent
Thanks for clarification
Regards
