How to Change Variable Value in ServiceNow Flow Designer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 12:36 AM
Hi everyone,
I'm currently working with Flow Designer in ServiceNow and need some assistance with changing the value of a variable during the flow execution.
Here's what I'm trying to achieve:
- I have created a field with three options: None, Yes, and No.
- I want to dynamically change this field's value from None to either Yes or No within the flow.
- Based on this change, I want to trigger additional actions, such as making another field appear in the variables of a catalog task.
For example, when the value is changed to Yes, I want another field to appear in the catalog task variables.
Has anyone done something similar or can guide me through the process? Any tips?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 01:58 AM
You can't use a flow for that. Flows run after. There is nothing to run on.
You will need a catalog client script to set the value.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2024 01:30 AM
Hi @MaramA ,
You can refer to below post from community :
Also to update catalog item form variable you can also update that variable through script by doing a gliderecord on sc_item_option_mtom.
Please mark helpful/correct if my response helped you.