@xkit-co/crm-link.js
v2.10.9
Published
CRM integrations on your application via XKit
Downloads
292
Readme
@xkit-co/crm-link.js
Installation
Changelog
Debugging
Under some very specific circumstances, you might run into issues with using this library. Some of these are known and are listed below:
- This library renders DOM elements at
z-index
values of999
and1000
. You might notice an issue if thez-index
values in your application are the same or higher. - This library uses the available height of the document window to determine where to render dropdown menus. If for some reason, the height of your application's
html
orbody
element is less than the viewport height, you might notice an issue. - This library when consumed as a node package is built for ES5 and above. Make sure your build tool or bundler is up to date.
- When using the browser script, ensure
window.linkCRM
is not re-assigned. - Ensure that no DOM elements in your application have an
id
attribute ofxkit-crm-link-scope
.
API
linkCRM()
| Argument | Type | Description |
| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| domain
| string
| The domain string of your Xkit application. This can be viewed and configured in the Xkit developer portal. |
| token
| string
| The Xkit context token that is fetched from your application's backend. Refer to the Xkit documentation. |
| options
| object
| The configuration object by which the user will map data from their CRM, and customize how CRM Link is launched. Refer to the Xkit documentation. |
| Return Type | Description |
| ----------------- | -------------------------------------------------------------------------- |
| Promise<string>
| A promise that either resolves to a connection ID or rejects with an error |