How to fetch the value of field in a flow via system property instead of hardcoding?

Amol Pawar
Tera Guru

Hi Experts,

 

I want to check the value of field in my flow using a system property instead of hardcoding. I can do that in a Create a Record Action, using toggle script, but I'm unable to see that script toggle in If flow logic condition.

AmolPawar_0-1767718315852.png

Please refer this ss and let me know how I can use a system property here. 

One thing, I'm unable to see the Get Property action as well in my instance.

 

Thanks in advance,

Amol

8 REPLIES 8

Brad Bowman
Kilo Patron

There is not an out of box Get Property action in Flow Designer.  You can do this before the If action by creating a flow variable, then using Set Flow Variables from the Flow Logic section to populate the flow variable with the system property via script.  Then your If action can evaluate the value of the Flow Variable.

SanjivMeher
Mega Patron

You can use Flow variable in this case. Create the flow variable and the Set the Flow Variable.

SanjivMeher_0-1767720990162.png

 

Then use it in your actions.

 


Please mark this response as correct or helpful if it assisted you with your question.

Anand Kumar P
Tera Patron

Hi @Amol Pawar ,

 

You can have lookup action before condition step to lookup system property table with name and get sys_id use that.

 

You can create new action and send name as input and in script get system property sys_id return it as output and use it in condition.

 

https://www.servicenow.com/community/developer-articles/flow-designer-action-quot-get-system-propert...

If my response helped, please mark it as the accepted solution and give a thumbs up👍.
Thanks,
Anand