Want to create a variable inside a flow.

NeethuB
Tera Contributor

I have a flow which will assign the approval group by the timezone.I have a created a action script and the timezone is coming from the user table. 
if the timezone is US i want to store  the sysid of the approval group.

So do you guys know how can i create a variable inside a flow?

2 REPLIES 2

Shivalika
Mega Sage

Hello @NeethuB 

 

Yes, go to hamburger icon on the right hand side and click on flow variables. You can create variables from there. 

 

Refer below documentation - https://www.servicenow.com/docs/bundle/xanadu-build-workflows/page/administer/flow-designer/task/cre...

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

 

J Siva
Tera Sage

Hi @NeethuB 

May I know why you want to store the sys id? What's the purpose of this?

Please give more information.

If you want to store that temporarily and that needs to be reused within the flow, then you can create flow variables.

PFB servicenow doc to get more info on flow variables.

https://www.servicenow.com/docs/bundle/yokohama-build-workflows/page/administer/flow-designer/concep...

Regards,

Siva