Integrations
Manage flows used as integration templates and instances.

Integrations
Set up a new instance with
config
parameters and set
/get
methods:const integrations = appmixer.ui.Integrations(config)
integrations.set(key, value)
integrations.get(key)
Type:
Object
| Default: {}
Type:
Object
| Default: {}
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',
}
}
}
integrations.state(name, value)
Type:
Boolean
| Default: null
Toggle a custom loading state.
Type:
String
| Default: null
Toggle a custom error message.
integrations.on(event, handler)
integrations.on('integration:create', integrationId => {/* ... */})
Click a button to to create a new integration from template.
integrations.on('integration:edit', integrationId => {/* ... */})
Click a button to edit integration.
integrations.on('integration:remove', integrationId => {/* ... */})
Click a button to remove integration.
integrations.on('integration:start', integrationId => {/* ... */})
Click a button to start integration.
integrations.on('integration:stop', integrationId => {/* ... */})
Click a button to stop integration.
const integrations = 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.
const integrationId = await appmixer.api.cloneFlow(templateId, { connectAccounts: false })
await appmixer.api.updateFlow(integrationId, { templateId })
const wizard = 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()
Last modified 2mo ago