Filter the integrations with additional parameters:
appmixer.ui.Integrations({/* ... */ options: { customFilter: {// displaying Integrations with a certain customField'customFields.category':'healthcare',// that are shared with someone'sharedWith':'![]'// and in this example, that are shared throught the 'domain'// options with a 'testdomain.com''sharedWith.domain': 'testdomain.com'// or we could filter only Integrations that are shared with// scope 'user'// 'sharedWith.scope': 'user', } }}
constintegrations=appmixer.ui.Integrations({ el:'#integrations'})integrations.open()integrations.on('integration:create',async templateId => {// Create integration flow as a clone of the template. Disconnect// accounts because they might not be shared with the end user.constintegrationId=awaitappmixer.api.cloneFlow(templateId, { connectAccounts:false })awaitappmixer.api.updateFlow(integrationId, { templateId })constwizard=appmixer.ui.Wizard({ el:'#your-wizard-div', flowId: integrationId, });wizard.open()integrations.reload()})integrations.on('integration:edit',function(integrationId) {var wizard =appmixer.ui.Wizard({ el:'#wizard', flowId: integrationId });wizard.open()});integrations.open()