Dynamic Dictionary Change during Flow Execution

Prudhvi Potru
Tera Contributor

I want to change the dictionary value of a field temporarily (like Prod Min ORR Score) and then reset it.

Is there a way to update dictionary-level data from Flow Designer or should this only be done via a Script Include/Fix Script?

 

Variable key: Prod Min orr score

 

in a custom table 

 

type Dictionary (Name-Value Pairs)

1 ACCEPTED SOLUTION

pavani_paluri
Giga Guru

Hi Prudhvi,

 

You can do that using two ways in flow designer:

Lookup the required record if there is any relation to any of the flow variables or current record.

Add Update Record action to update the specific field either a static value or dynamic value via script available at field level.

 

Use a Custom Action and send the required params as input to the action. Create the script step and write the code to update the field.

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Prudhvi Potru 

Name-Value pair field type can't be set directly in flow.

you need to use f(x) inline script and set the json string

How to populate a name value pair field from flow designer 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Prudhvi Potru 

Refer this link:

https://www.servicenow.com/community/csm-forum/how-to-populate-a-name-value-pair-field-from-flow-des...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

pavani_paluri
Giga Guru

Hi Prudhvi,

 

You can do that using two ways in flow designer:

Lookup the required record if there is any relation to any of the flow variables or current record.

Add Update Record action to update the specific field either a static value or dynamic value via script available at field level.

 

Use a Custom Action and send the required params as input to the action. Create the script step and write the code to update the field.

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P

Prudhvi Potru
Tera Contributor

Thanks @pavani_paluri

executed successfully by using script action