- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 11:14 PM
Hi All,
I am unable to get variables in step 9 fetched in step 5 or 8.I have moved variables from available to selected in step 5 and 8. But still issue exist. Please guide me.
Thanks in Advance,
Sachin
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2022 12:01 AM
Hi Sachin,
Flow Designer only allows usage of data pills inside the scope. That is, variables declared within the if statement can only be used within the if branch.
To usage variables defined in the if branch after the if branch, create a Flow Variable.
After getting the Catalog Variable, add a "Set Flow Variable" to set the catalog variable to the Flow Variable.
Then, use the flow variable in the if statement in step 9.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 11:28 PM
Hi,
you are using IF action; so it would show that previous action which has the output result as Success/Failure
What you wish to check using IF action?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 11:31 PM
Hi Ankur,
lets say, i have fetched location variable in step 5.so in step 9 i want to check if location is india.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2022 11:39 PM
Hi,
Is location variable a reference variable?
why not use lookup record on location table and then use output of Lookup record in the IF Action
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2022 12:01 AM
Hi Sachin,
Flow Designer only allows usage of data pills inside the scope. That is, variables declared within the if statement can only be used within the if branch.
To usage variables defined in the if branch after the if branch, create a Flow Variable.
After getting the Catalog Variable, add a "Set Flow Variable" to set the catalog variable to the Flow Variable.
Then, use the flow variable in the if statement in step 9.