diff --git a/packages/backend/src/apps/vtiger-crm/auth/index.js b/packages/backend/src/apps/vtiger-crm/auth/index.js index 03536e69..8d58d6dc 100644 --- a/packages/backend/src/apps/vtiger-crm/auth/index.js +++ b/packages/backend/src/apps/vtiger-crm/auth/index.js @@ -26,15 +26,14 @@ export default { clickToCopy: false, }, { - key: 'domain', - label: 'Domain', + key: 'instanceUrl', + label: 'Instance URL', type: 'string', required: true, readOnly: false, value: null, placeholder: null, - description: - 'For example: acmeco.od1 if your dashboard url is https://acmeco.od1.vtiger.com. (Unfortunately, we are not able to offer support for self-hosted instances at this moment.)', + description: '', clickToCopy: false, }, ], diff --git a/packages/backend/src/apps/vtiger-crm/common/set-base-url.js b/packages/backend/src/apps/vtiger-crm/common/set-base-url.js index a0dcffe1..def1330c 100644 --- a/packages/backend/src/apps/vtiger-crm/common/set-base-url.js +++ b/packages/backend/src/apps/vtiger-crm/common/set-base-url.js @@ -1,7 +1,7 @@ const setBaseUrl = ($, requestConfig) => { - const domain = $.auth.data.domain; - if (domain) { - requestConfig.baseURL = `https://${domain}.vtiger.com`; + const instanceUrl = $.auth.data.instanceUrl; + if (instanceUrl) { + requestConfig.baseURL = instanceUrl; } return requestConfig; diff --git a/packages/docs/pages/apps/vtiger-crm/connection.md b/packages/docs/pages/apps/vtiger-crm/connection.md index 101b8760..588a3418 100644 --- a/packages/docs/pages/apps/vtiger-crm/connection.md +++ b/packages/docs/pages/apps/vtiger-crm/connection.md @@ -8,6 +8,6 @@ This page explains the steps you need to follow to set up the Vtiger CRM connect 2. Go to **My Preferences** of your account. 3. Copy **Access Key** value from Vtiger CRM to Automatisch. 4. Fill **Username** field as your Vtiger CRM account email on Automatisch. -5. Fill **Domain** field as if your dashboard url is `https://acmeco.od1.vtiger.com`, paste `acmeco.od1` to the field on Automatisch. +5. Fill **Instance URL** field on Automatisch. 6. Click **Submit** button on Automatisch. 7. Congrats! Vtiger CRM connection is created.