Check Instance

JanaT
Tera Contributor

Hi.

I want to create a subflow, which checks on which Instance(dev,test or pro)  the flow is. If the Instance is pro, then the flow should start. If it's not pro then the flow should not run.

 

I recently created a flow, which gives notification in MS teams about urgent incidents. The flow is currently on all three plattforms. Just to be sure, we want to create a check to be sure that the flow only gives notifications of the incidents on the pro plattform.

 

Does anyone knows how the subflow must be created?

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@JanaT You can create a custom action to check the property glide.servlet.uri

gs.getProperty('glide.servlet.uri')

and use a switch cases to match with different instance URLs. In the switch case for production you can choose to trigger the notification and chose to ignore for other instances.

 

Please mark the response helpful and accepted solution if it manages to answer your question.
 

@JanaT 

Please mark the response an accepted solution if it manages to answer your question.