How can i deploy an automation to a different tenant that contains a managed connection?

I have an automation that uses an acitivity that has a needs an integration service connection

When i publish the package an run it in a different tenant i get this message
Robot - Failed to retrieve connection. Consider using a different connection. - Connection [xxxxxxx] is invalid or you do not have access to it Error code: DAP-GE-3000.

How can i publish the package an be able to have it run in a different tenant and actually work?

Hi @lr101,

You need to create the connection on the other tenant to access this connection.

Thanks

i did create this connection in the other tenant,

Hi @lr101,

While creating the process you need to select this connection on Orchestrator.

Currently, your code is referrring the old connection which can be changes from process on Orchestrator.

Go to Automation β†’ Process β†’ Edit Process β†’ select the connection.

Thanks

i have done that but now i get this error
AE: Failed to retrieve connection. Consider using a different connection. - User β€˜xxxxx’ does not have Connections.View permissions in [Connection: xxxxxxx] Error code: DAP-GE-3000. [at β€˜>Adhoc_WebHookTest’]

@lr101

After creating connection in other tenant, you need to edit and you have select other connection before of that make sure your assistant and studio also changed to new tenant.
If not first connect the assistant and studio with other tenant then edit your process and then add your connection. Before publishing run in studio then publish to orchestrator.

Happy Automation

Hi @lr101,

Can you please confirm whether you have selected the connection in the Process configuration?

Go to Automation β†’ Processes β†’ Select process β†’ Edit Process and verify that the required connection has been created and selected.

It also appears to be a permission-related issue. Your robot account may not have the necessary access to use the connection or perform the action.

Please verify that the robot account has the required permissions and access.

Thanks

I have the connection there

do you know which permissions i should have?
and what the name of the permissions are needed?

Hi @lr101,

You need to assign the Folder Administrator role to the user.

Alternatively, you can create a custom role with the required permissions and assign it to the user. Refer the below snapshot.

If you still face the issue, please refer to the link below and let me know whether it resolves the problem.

Thanks

i added a the new role to the folder

but now i get this error

message:
** AE: Request failed with error: **
ProviderMessage : requestId - xxxx-xxxx, name - xxxxx, message - Missing instance xxx for user in tenant
ProviderErrorCode : 404
RequestId : xxxxx
Message : Not Found

I got it working now

Thank you for your help !