Skip to content

Salesforce integration with the Norwegian business database "Brønnøysundregistrene"

Notifications You must be signed in to change notification settings

jordan-mathews/sf-breg

Repository files navigation

sf-breg

This package is contains Lightning Web Components and classes for integrating with the Brønnøysund Registrene.

Features

The search component can be used in a global action or on a lightning page layout.

image

The BregCalloutService class supports the following methods:

Search for organizations by name- searchOrganization(String name)

Get organization by organization number- getOrganization(String organizationNumber)

Dependencies

This package is dependent on the following packages:

sf-integration-base

Installation

  1. Install npm
  2. Install Salesforce DX CLI
    • Alternative: npm install sfdx-cli --global
  3. Clone this repository (GitHub Desktop is recommended for non-developers)
  4. Run npm install from the project root folder
  5. Install SSDX
    • Non-developers may stop after this step
  6. Install VS Code (recommended)
    • Install Salesforce Extension Pack
    • Install recommended plugins! A notification should appear when opening VS Code. It will prompt you to install recommended plugins.
  7. Install AdoptOpenJDK (only version 8 or 11)
  8. Open VS Code settings and search for salesforcedx-vscode-apex
  9. Under Java Home, add the following:
    • macOS: /Library/Java/JavaVirtualMachines/adoptopenjdk-[VERSION_NUMBER].jdk/Contents/Home
    • Windows: C:\\Program Files\\AdoptOpenJDK\\jdk-[VERSION_NUMBER]-hotspot

Build

To build the project locally follow these steps:

  1. If you have not authenticated to a DevHub run sfdx auth:web:login -d -a production and the log in.
  2. Install sfdx plugin echo y | sfdx plugins:install sfpowerkit@2.0.1
  3. Create a file in the projects root directory with the name env.json
{
    "PACKAGE_KEY": "Your Package Key"
}

  1. Create scratch org, install dependencies and push project source.
npm install
npm run mac:build

About

Salesforce integration with the Norwegian business database "Brønnøysundregistrene"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published