How do I set a catalog variable in flow designer?

Marvin16
Tera Contributor

Hey there,

does anyone know how to set a catalog variable in flow designer properly? I have created a custom action with a script step. The script step has one Reference.Requested Item input parameter.

find_real_file.png

In my script i do the following:

inputs.ri.variables.my_text = "Hello World";

So in workflows I have the current object which ensures that this operation is written to the database. But in flow designer i do not have that object so I wonder whether I need to call:

inputs.ri.update();

How do i ensure that the variable is written to the database in flow designer? What is the proper way to do it?

 

Best regards

4 REPLIES 4

Rajender1
Mega Sage

Hi,

I hope this thread will give you some help which you are looking for

https://community.servicenow.com/community?id=community_question&sys_id=38333caddb98fb445129a851ca96...

Mark correct and Helpful

Thanks

Rajender

Hey Rajender,

this thread does not answer my questionn at all. I know how to get variables from the triggering catalog item in flow designer. I want to set/change variables within the flow for the related catalog item.

 

Best regards

Ghazal
Kilo Contributor

Hi Marvi,

 

Wondering how you could finally set variables values.

 

Ghazal

Deepak61
Tera Contributor

Check this community link for help with the setting catalog variable. 

https://www.servicenow.com/community/now-platform-articles/set-value-of-a-catalog-variable-at-flow-d...