Check Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2024 01:24 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2024 01:32 AM
@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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2024 02:30 AM