Integration HUB: Dynamic selection of connection

iooryz
Tera Expert

I'm explorering the posibilities to use the integration HUB to automate some of our servicedesk tasks. One of the most used tasks in service requests is adding a user to a group in Entra ID. The Entra ID spoke makes it easy to automate. But, we serve multiple customers as an MSP and all those customers have their own Entra ID environment. I can easily create a connection to each environment, but I'm looking for a way to dynamically select the connection to use for a step in a flow. 

 

A use case for example would be to add a user to a group for a license for application X. These groups are always called application X users. (After approvals) the first step would be to look up the group in Entra ID based on the name, a second step would be to add the user to that group. As a connection has to be set on the flow level, that would result in a seperate flow and catalog item for each account and (current) catalog item combination. That is not really manageable and efficient. If it's possible to dynamically select the connection based on the account of the user, that would prevent it. 

 

I've tried to copy an action from the Entra ID spoke and add a variable for the connection (reference to the http_connection table) and add that variable as the connection alias in the REST step, but that's not allowed. 

 

Did someone find a workaround for this in the past, or am I looking in a totally wrong direction? 

We're using the CSM, ITSM and IntegrationHUB enterprise modules in ServiceNow and are running on the Washington release.

2 ACCEPTED SOLUTIONS

What pill type did you use? Below I added a reference pill for the connection and credential alias table

 

KieranAnson_0-1729074454194.png

 

Then on the REST step, I use the data pill to map the alias

KieranAnson_1-1729074497583.png

 

View solution in original post

I used the same pill type, but couldn't edit anything in that step. The reason was that the integrationhub wasn't activated through the support portal, and only the spoke was installed as a plugin.

After activating the ServiceNow Integrationhub Professional Pack installer through the support portal and it's Automation Store, it was possible to change the value and insert the pill.

View solution in original post

5 REPLIES 5

Tushar Walveka2
Tera Guru

In the flow configuration, enable “Show advanced connection options”

TusharWalveka2_2-1741792077568.png

 

Now the option to select connection at the action level is available. Select the appropriate connection record for each action based on the requirement.

TusharWalveka2_3-1741792123020.png