Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Use System Property in Flow Designer Trigger condition

RC19
Tera Expert

I have a requirement to trigger the flow designer if incident task is assigned to certain 3 groups . I have to store those groups in system property(as per requirement) and use it in the flow designer trigger condition . Please help on how can this be possible ? 

 

I have already tried using assignment group is one of javascript: gs.getProperty('sys prop name'); in condition but it didn't work and i tried calling script include where i am returning this property value . That too didn't work . Is it even possible ? 

 

Thanks.

6 REPLIES 6

Sandeep Rajput
Tera Patron
Tera Patron

@RC19 I tried the similar condition in flow conditions in past and it worked for me. Try following.

Screenshot 2024-06-11 at 10.48.20 PM.png

Hope this helps.

Thanks for the reply. Unfortunately, this doesnt work for me .

 

 

Zach Koch
Giga Sage

I don't think you can use system properties in the trigger, however you could approach this a little bit differently. You could create a BR that on update of the record with these groups assigned, you could use the ScriptableFlowRunner API to call your flow, and script the inputs that your flow requires. Here is a link to the docs page, and also a picture of the relevant section on how to use the withInputs() method

Flowrunner api docs 

ZachKoch_0-1718126457864.png

 

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

Ssinha4
Tera Contributor

Hi,

I am facing the same issue..Did you find any solution??

Thanks