Type Alias: AnalyticsSdkConfig

AnalyticsSdkConfig: object

Defines the configuration options for the Analytics SDK.

Multi-org Configuration 

For multi-org scenarios, use the orgConfigs array instead of orgUrl and authCredential:

1const config: AnalyticsSdkConfig = {
2  orgConfigs: [
3    {
4      orgUrl: "https://org1.lightning.force.com",
5      authCredential: "https://org1.salesforce.com/secur/frontdoor.jsp?sid=123...",
6    },
7    {
8      orgUrl: "https://org2.lightning.force.com",
9      authCredential: "https://org2.salesforce.com/secur/frontdoor.jsp?sid=123...",
10    },
11  ],
12};

Note: Each orgUrl in orgConfigs must be a Lightning URL (e.g., https://yourorg.lightning.force.com), not the my.salesforce.com domain URL.

Type declaration 

authCredential? 

optional authCredential: string

The auth credential for authentication.

debug? 

optional debug: boolean

Indicates whether debug mode is enabled (true) or not (false). Default is false.

orgConfigs? 

optional orgConfigs: OrgConfig[]

Required array of org configurations for multi-org scenarios. Each orgUrl must be a Lightning URL (e.g., https://yourorg.lightning.force.com).

orgUrl? 

optional orgUrl: string

The org URL.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!