Change App based on Variable

As part of an integration with an external system, we want to dynamically change Apps. When creating a Trigger and adding a Transition there’s the option to Cancel or Complete and “Change To” but the only options are manually selecting from a drop down list of Apps. Is there any way to change Apps based on a Variable or other dynamic value? We’d be happy to send the App Id, like “CTsGDgq67rxLT2bj9” (not a real id). More generally speaking, I can imagine mapping App IDs in an external system or a Tulip Table and wanting to load different Apps based on these values.

Having to manually select from a drop down list in each instances is severely limiting scalability.

Hi Olek,

You can use “Change App by Name”. See below:

The important caveat is to ensure you are adequately controlling who can alter app names in your production environment. You don’t want John Smith to break your workflow because he decided that “Widget Pressing” fits the work process better than “Widget Stamping”

1 Like

Thanks, I did not see that option before, that’s helpful!

As you point out, one concern with doing this by name is that names can be edited. Additionally it’s possible (but obviously not best practice) to have multiple Apps with the same name since Tulip does not prevent this. I’d love to be able to use the App Id (and possibly even version) to ensure we’re mapping to the correct App.

2 Likes

As you say, it is possible to have multiple apps with the same name. When this happens, the app simply won’t transition, and will display an error, so there’s no risk that it goes to the wrong version. My understanding is also that the app version selected is based on the deployment for the station where the app is used.

I agree, it would be nice to have app ID usable for this, for people who do most of their development in one instance and want to reliably call the same app each time. One workaround for this could be use the “Open Link” action and use the player link for the app you want to run. I’m not sure if this will work, but it’s worth trying.

1 Like

Thanks for the idea! I’ll try the Open Link option as well!