Configuration - Proff¶
This section describes how you configure ACD for Proff. You need to configure ACD in these places:
- Runtime configuration
- Application configuration
- If Lime CRM web client:
Runtime Configuration¶
ACD uses Proff API to provide company data. It's a one-to-one mapping between Lime CRM's company
limetype and Proff's /companies/register
endpoint.
To see available mapping properties, head over to Proff's Swagger documentation and look at the example responses on the /companies/register
endpoint. When you mapping Proff´s data to Lime properties in the configuration, you should be aware of that the result from Proff is flattened and prefixed with company
.
Example¶
This is a complete Proff provider specific configuration for ACD. See general configuration for a description of each parameter.
{
"mapping": [
{
"limeProperty": "name",
"providerProperty": "company.name"
},
{
"limeProperty": "postaladdress1",
"providerProperty": "company.postalAddress.addressLine"
},
{
"limeProperty": "postalzipcode",
"providerProperty": "company.postalAddress.zipCode"
},
{
"limeProperty": "postalcity",
"providerProperty": "company.postalAddress.postPlace"
},
{
"limeProperty": "visitingaddress1",
"providerProperty": "company.visitorAddress.addressLine"
},
{
"limeProperty": "visitingzipcode",
"providerProperty": "company.visitorAddress.zipCode"
},
{
"limeProperty": "visitingcity",
"providerProperty": "company.visitorAddress.postPlace"
},
{
"limeProperty": "www",
"providerProperty": "company.homePage"
},
{
"limeProperty": "phone",
"providerProperty": "company.phoneNumbers.telephoneNumber"
},
{
"limeProperty": "registrationno",
"providerProperty": "company.organisationNumber"
},
{
"limeProperty": "acd_unitstatus",
"providerProperty": "company.status.statusFlag"
},
{
"limeProperty": "acd_email",
"providerProperty": "company.email"
},
{
"limeProperty": "acd_legalform",
"providerProperty": "company.companyType"
},
{
"limeProperty": "acd_groupname",
"providerProperty": "company.corporateStructure.parentCompanyName"
}
],
"propertiesToPopulateSearchWith": {
"searchText": [
"registrationno"
]
},
"proff": {
"hideManualUpdateButton": true
},
"limetypeCompany": "company",
"propertyProviderId": "acd_id",
"propertyLastUpdated": "acd_lastupdated",
"propertyResponsible": "coworker",
"provider": "proff",
"customCommandId": "",
"propertyName": "name"
}
Application Configuration¶
ACD is using the application level configuration in order to configure API credentials for Proff and enable automatic updates via a nightly job.
Windows on-premise Installations¶
For Windows on-premise installations, the application level configuration is expressed in the file:
%ProgramData%\Lundalogik\LIME Pro Server\application_config.yaml
Add following to the application_config.yaml file:
<application-name>:
config:
addon-acd:
auto_update_enabled: true
secrets:
addon-acd:
proff:
credentials:
token: <proff-token>
Restart the web server
Cloud¶
For Cloud installations, the application level configuration is configured in CAFE (Cloud Administration).
Add following to the Secret box in the application configuration in CAFE:
addon-acd:
proff:
credentials:
token: <proff-token>
In order to enable automatic updates add the following to the Config box in the application configuration in CAFE:
addon-acd:
auto_update_enabled: true
View Configuration¶
If Lime CRM web client: Add ACD's web component and ACDs' fields to the company view configuration as described below.
Company¶
Card¶
Add ACD's web component to the card view configuration as below or add acd-update-object
to the web component slot in the UI of Lime admin.
"components": [
{
"name": "acd-update-object"
}
]
Add the following as a section to your card view configuration.
{
"title": "Proff Information",
"controls": [
{
"property": "acd_id",
"readonly": true
},
{
"property": "acd_unitstatus",
"readonly": true
},
{
"property": "acd_email",
"readonly": true
},
{
"property": "acd_legalform",
"readonly": true
},
{
"property": "acd_groupname",
"readonly": true
}
]
}
Table¶
Add the following as column properties to the table view configuration.
{
"property": "acd_id",
"isDefault": false
},
{
"property": "acd_lastupdated",
"isDefault": false
},
{
"property": "acd_unitstatus",
"isDefault": false
},
{
"property": "acd_email",
"isDefault": false
},
{
"property": "acd_legalform",
"isDefault": false
},
{
"property": "acd_groupname",
"isDefault": false
}