Flow designer

Mark Wood
Tera Contributor

Hello experts,

I have designed one flow to create an incident when the parent field is empty on the XYZ form.

which is running fine.

now my requirement is when the system properties value is true our flow will create an incident if its system properties value is false our flow should not create incident.

I have created my custom system properties. i have attached my sub-flow screenshot below.

please guide me on how can i fetch system properties and check whether their value is true or false

thank you.

1 ACCEPTED SOLUTION

SANDEEP28
Mega Sage

@Mark Wood You can achieve this by using  flow variables. Create a flow variable of type "True/False". Write script to fetch the system property value and assign it to flow variable. Follow below steps

 

1) Create flow variable by clicking on three dots icon next to Save button in flow  as below 

 

SANDEEP28_0-1691737742161.png

SANDEEP28_2-1691737832069.png

 

2) Set the flow variable value using flow logic and write one line code to get system property value

 

SANDEEP28_3-1691737901085.png

 

 

SANDEEP28_4-1691738050988.png

return gs.getProperty('incidentCreationFlag');
 
3) Then make of use flow variable in you if else logic as below 
SANDEEP28_5-1691738146779.png

 

 

SANDEEP28_6-1691738172910.png

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !! 

 

 

 

 

 

View solution in original post

6 REPLIES 6

Rahul Talreja
Mega Sage
Mega Sage

Hi @Mark Wood ,

Refer :Solved: Can I use a system property in Flowdesigner? - ServiceNow Community

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul

Hi @Mark Wood ,
Have you checked the link, I have shared!
Can you please let me know if you were not looking for that?

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul

Hi @Mark Wood ,
Any suggestions?

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul

SANDEEP28
Mega Sage

@Mark Wood You can achieve this by using  flow variables. Create a flow variable of type "True/False". Write script to fetch the system property value and assign it to flow variable. Follow below steps

 

1) Create flow variable by clicking on three dots icon next to Save button in flow  as below 

 

SANDEEP28_0-1691737742161.png

SANDEEP28_2-1691737832069.png

 

2) Set the flow variable value using flow logic and write one line code to get system property value

 

SANDEEP28_3-1691737901085.png

 

 

SANDEEP28_4-1691738050988.png

return gs.getProperty('incidentCreationFlag');
 
3) Then make of use flow variable in you if else logic as below 
SANDEEP28_5-1691738146779.png

 

 

SANDEEP28_6-1691738172910.png

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!