Enabling Instances
Read firstCopy
Make sure you have read the following sections before proceeding:
IntroductionCopy
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 dashboardCopy
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 AppCopy
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:
1updateSolutionInstance(input: {2solutionInstanceId: $solutionInstanceId,3instanceName: $instanceName,4errorOnEnablingWithMissingValues: true,5enabled: true6})
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.
Read nextCopy
Next page in this section discusses how to update instances in Tray.