Script step's input variable value returning to "{{undefined}}" in Zurich patcg 7 Flow Designer

User687957
Tera Expert

Dear all,

In my flow action I define an inputs variables as seen below

I1MjnthY2d.png

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

2 REPLIES 2

Tanushree Maiti
Kilo Patron

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:

Screenshot 2026-04-13 140448.png

 

Map it properly, it will work.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

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