This package is contains Lightning Web Components and classes for integrating with the Brønnøysund Registrene.
The search component can be used in a global action or on a lightning page layout.
The BregCalloutService
class supports the following methods:
Search for organizations by name-
searchOrganization(String name)
Get organization by organization number-
getOrganization(String organizationNumber)
This package is dependent on the following packages:
- Install npm
- Install Salesforce DX CLI
- Alternative:
npm install sfdx-cli --global
- Alternative:
- Clone this repository (GitHub Desktop is recommended for non-developers)
- Run
npm install
from the project root folder - Install SSDX
- Non-developers may stop after this step
- 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.
- Install AdoptOpenJDK (only version 8 or 11)
- Open VS Code settings and search for
salesforcedx-vscode-apex
- 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
- macOS:
To build the project locally follow these steps:
- If you have not authenticated to a DevHub run
sfdx auth:web:login -d -a production
and the log in. - Install sfdx plugin
echo y | sfdx plugins:install sfpowerkit@2.0.1
- Create a file in the projects root directory with the name
env.json
{
"PACKAGE_KEY": "Your Package Key"
}
- Create scratch org, install dependencies and push project source.
npm install
npm run mac:build