Skip to content

Configuration - Brønnøysundregistrene

This section describes how you configure ACD for Brønnøysundregistrene. You need to configure ACD in these places:

Runtime Configuration

ACD uses Brønnøysundregistrene API to provide company data. It's a one-to-one mapping between Lime CRM's company limetype and Brønnøysundregistrene's /enheter endpoint.

To see available mapping properties, head over to Brønnøysundregistrene's Swagger documentation and look at the example response. When you mapping Brønnøysundregistrene's data to Lime properties in the configuration, you should be aware of that the result from Brønnøysundregistrene is flattened and prefixed with company.

Example

This is a complete Brønnøysundregistrene provider specific configuration for ACD. See general configuration for a description of each parameter.

{
  "mapping": [
    {
      "limeProperty": "name",
      "providerProperty": "company.navn"
    },
    {
      "limeProperty": "postaladdress1",
      "providerProperty": "company.forretningsadresse.adresse.0"
    },
    {
      "limeProperty": "postalzipcode",
      "providerProperty": "company.forretningsadresse.postnummer"
    },
    {
      "limeProperty": "postalcity",
      "providerProperty": "company.forretningsadresse.poststed"
    },
    {
      "limeProperty": "visitingaddress1",
      "providerProperty": "company.forretningsadresse.adresse.0"
    },
    {
      "limeProperty": "visitingzipcode",
      "providerProperty": "company.forretningsadresse.postnummer"
    },
    {
      "limeProperty": "visitingcity",
      "providerProperty": "company.forretningsadresse.poststed"
    },
    {
      "limeProperty": "www",
      "providerProperty": "company.hjemmeside"
    },
    {
      "limeProperty": "registrationno",
      "providerProperty": "company.organisasjonsnummer"
    },
    {
      "limeProperty": "acd_legalform",
      "providerProperty": "company.organisasjonsform.kode"
    },
    {
      "limeProperty": "acd_maintradecode",
      "providerProperty": "company.naeringskode1.kode"
    },
    {
      "limeProperty": "acd_maintrade",
      "providerProperty": "company.naeringskode1.beskrivelse"
    },
    {
      "limeProperty": "acd_legalname",
      "providerProperty": "company.navn"
    },
    {
      "limeProperty": "acd_noofemployeescompany",
      "providerProperty": "company.antallAnsatte"
    }
  ],
  "propertiesToPopulateSearchWith": {
    "searchText": [
      "registrationno"
    ]
  },
  "limetypeCompany": "company",
  "propertyProviderId": "acd_id",
  "propertyLastUpdated": "acd_lastupdated",
  "propertyResponsible": "coworker",
  "provider": "brreg",
  "customCommandId": "",
  "propertyName": "name"
}

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": "Brønnøysundregistrene Information",
      "controls": [
        {
          "property": "acd_id",
          "readonly": true
        },
        {
          "property": "acd_lastupdated",
          "readonly": true
        },
        {
          "property": "acd_legalform",
          "readonly": true
        },
        {
          "property": "acd_maintradecode",
          "readonly": true
        },
        {
          "property": "acd_maintrade",
          "readonly": true
        },
        {
          "property": "acd_legalname",
          "readonly": true
        },
        {
          "property": "acd_noofemployeescompany",
          "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_legalform",
      "isDefault": false
    },
    {
      "property": "acd_maintradecode",
      "isDefault": false
    },
    {
      "property": "acd_maintrade",
      "isDefault": false
    },
    {
      "property": "acd_legalname",
      "isDefault": false
    },
    {
      "property": "acd_noofemployeescompany",
      "isDefault": false
    }