Enabling Instances

Read first

Make sure you have read the following sections before proceeding:


Once the instance has been created, you will can update instances:

  • through dashboard

  • through marketplace

    • call the enable instance API right after configuration is finished by the end user.

    • allow end users to do it themselves in the marketplace app on click of a button.

This is to allow you to make any checks or changes before an Instance is activated.

Using Tray dashboard

You can enable instances through the dashboard as well. Navigate to the project you want to enable instances for. Open the project and click on the Solution Instances tab. You will find all Solution Instances linked to this project.

You can click on enable as shown above and the instance would be enabled.

You can also disable instances if required. You will find a 'disable' option for a Solution Instance that's 'enabled':

Using Marketplace App

You can provide an option to end users to enable the instance as shown as shown above. You will use the updateSolutionInstance - Enable (User token) mutation with to enable the instance in your Integration marketplace app.

Note that it is best practice to set errorOnEnablingWithMissingValues to true when passing the arguments with this mutation:

updateSolutionInstance(input: {
solutionInstanceId: $solutionInstanceId,
instanceName: $instanceName,
errorOnEnablingWithMissingValues: true,
enabled: true

This will prevent you from enabling misconfigured Instances.

When using config wizard experience, You can also enable the instance for them by immediately calling the above API right after the wizard is completed.

For this, You can listen for the tray.configPopup.finish event to know when was the wizard finished successfully. Check other config wizard events to handle any errors.

If you are using a custom form experience, you will have to use your own workaround.

Next page in this section discusses how to update instances in Tray.