Compare commits

...

1 Commits

Author SHA1 Message Date
Rıdvan Akca
c6a770c690 refactor(vtiger-crm): get full url for base url 2024-05-07 16:24:40 +02:00
3 changed files with 7 additions and 8 deletions

View File

@@ -26,15 +26,14 @@ export default {
clickToCopy: false, clickToCopy: false,
}, },
{ {
key: 'domain', key: 'instanceUrl',
label: 'Domain', label: 'Instance URL',
type: 'string', type: 'string',
required: true, required: true,
readOnly: false, readOnly: false,
value: null, value: null,
placeholder: null, placeholder: null,
description: 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.)',
clickToCopy: false, clickToCopy: false,
}, },
], ],

View File

@@ -1,7 +1,7 @@
const setBaseUrl = ($, requestConfig) => { const setBaseUrl = ($, requestConfig) => {
const domain = $.auth.data.domain; const instanceUrl = $.auth.data.instanceUrl;
if (domain) { if (instanceUrl) {
requestConfig.baseURL = `https://${domain}.vtiger.com`; requestConfig.baseURL = instanceUrl;
} }
return requestConfig; return requestConfig;

View File

@@ -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. 2. Go to **My Preferences** of your account.
3. Copy **Access Key** value from Vtiger CRM to Automatisch. 3. Copy **Access Key** value from Vtiger CRM to Automatisch.
4. Fill **Username** field as your Vtiger CRM account email on 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. 6. Click **Submit** button on Automatisch.
7. Congrats! Vtiger CRM connection is created. 7. Congrats! Vtiger CRM connection is created.