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.

can flow designer get to system properties?

davo
Mega Guru

So here's my scenario.

 

I want to set up flow designer to run to send messages to a MS Teams webhook, simple stuff, but I want to only do it on the production instance so need to essentially recreate:

gs.getProperty('instance_name') == "prod"

I can't see a simple way to do this as the flow jumps straight into looking at the record updated/created

1 ACCEPTED SOLUTION

I found that I could create a script action and call action in my flow to achieve it 🙂

View solution in original post

4 REPLIES 4

sachin_namjoshi
Kilo Patron
Kilo Patron

As of now, you can trigger flow designer actions only based on record created or updated.

In your case, you can write business rule and check system property value in your business rule.

Update record using your business rule which will trigger flow trigger.

 

Regards,

Sachin

I found that I could create a script action and call action in my flow to achieve it 🙂

 .

Its actually way easier than I thought.
Custom Action.
- Input Variable:  Property (reference to sys_properties)
- Output Varliable:  PropertyValue populate with Input Variable Property.DisplayName

No steps!  That's it that all.

Then when you use the action you just leverage that output value.

RobertFedoruk_0-1696360590720.png