how to Map the choice variable dynamically in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2025 08:33 PM
Hi All,
I am trying to map the choice field of a snow user profile through flow designer. we get user data through an integration and value should be mapped to field in snow user profile dynamically based on the input we receive as we have different choice values in snow end. trying with below script but it is returning empty value:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 06:04 AM
seems you have not configured the output variable correctly
the script step should also have an output variable and that needs to be mapped to the Outputs variable section
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 06:42 PM
Hi @Ankur Bawiskar in script step also, we have declared the variable and mapped the input but somehow the variable names are not matching with the one in script step and the one we created in outputs section, If i am trying to create new variable in script section, its not showing up in data pill ,even though i save and publish multiple times, so i am unable to map new one to output variable
I have tried to map the input to already existing script variables just for testing, its working fine and returning the value in log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 07:14 PM
ensure variable name is consistent. I have seen sometimes issue when we capitalize the variable
give something like this employeetype
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader