A helper type to inform when a string is expected to be a valid Salesforce ID.
Conditional type for selecting the most relevant type for the provided Salesforce object type.
The type of the Salesforce object (e.g. Account
/Contact
/etc. Prefer SalesforceObjectType enum to string for known types).
A Salesforce object that has a parent-child relationship to Opportunity and Task objects.
Gets all related Opportunity objects.
A promise resolving to an array of related Opportunities, ordered by last updated date.
Gets all related Task objects.
A promise resolving to an array of related Tasks, ordered by last updated date.
Response type for REST API requests.
The type of REST API data being retrieved.
Response data.
Response HTTP status code.
Establishes a connection with a Salesforce org. Requires that a Connected App has been registered with the Salesforce org.
In order for the user to authorize the app, a window is opened to the auth endpoint of the Salesforce org. The user logs in and then authorizes the app to access their Salesforce data, at which point the promise resolves with a connection object.
If an existing connection exists that is still valid, that connection will be returned without the user having to re-auth.
If the authorization process is not completed successfully for any reason, or if a connection cannot be established to the Salesforce org, an error will be thrown.
The URL of the Salesforce org to connect to (ending in "salesforce.com").
The Consumer Key of the Connected App to use for authorization.
Set to true
if the Salesforce org is a sandbox.
A promise resolving to a connection which can be used to retrieve data and execute requests against the Salesforce org.
Disables module logging if it has been enabled by a call to enableLogging.
Note: this function is also registered globally at window.fin.Integrations.Salesforce.disableLogging
.
Enables module logging to the console for debugging/troubleshooting purposes. This is off by default.
Note: this function is also registered globally at window.fin.Integrations.Salesforce.enableLogging
.
Retrieves an existing connection with a Salesforce org, created using the connect function.
The same org URL and consumer key values must be specified as was used when the connection was established, otherwise the connection will not be found.
The URL of the connected Salesforce org.
The consumer key of the Connected App used to connect.
A promise resolving to the existing connection, or null
if no existing connection is found.
Gets the URL to an object's detail page.
A Salesforce REST API SObject.
The Salesforce connection used to retrieve the object.
Object detail page URL.
Generated using TypeDoc
Connect OpenFin Container with Salesforce.