How to Change Variable Value in ServiceNow Flow Designer?

MaramA
Tera Contributor

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?

6 REPLIES 6

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

Anubhav24
Mega Sage
Mega Sage

Hi @MaramA ,

 

You can refer to below post from community :

https://www.servicenow.com/community/now-platform-forum/setting-or-updating-variables-in-flow-design...

 

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.