ConstRaw account records from the connected CRM.
MobileLockerCRMError on network failure, auth expiry, or server error.
Get a specific CRM account by ID.
The CRM account ID to fetch.
Raw account record from the connected CRM.
MobileLockerCRMError on network failure, auth expiry, or server error.
Get all CRM addresses synced for the current user.
Raw address records from the connected CRM.
MobileLockerCRMError on network failure, auth expiry, or server error.
Get a specific CRM address by ID.
The CRM address ID to fetch.
Raw address record from the connected CRM.
MobileLockerCRMError on network failure, auth expiry, or server error.
Get all CRM contacts synced for the current user.
Raw contact records from the connected CRM.
MobileLockerCRMError on network failure, auth expiry, or server error.
Get a specific CRM contact by ID.
The CRM contact ID to fetch.
Raw contact record from the connected CRM.
MobileLockerCRMError on network failure, auth expiry, or server error.
Get all CRM leads synced for the current user.
Raw lead records from the connected CRM.
MobileLockerCRMError on network failure, auth expiry, or server error.
Get a specific CRM lead by ID.
The CRM lead ID to fetch.
Raw lead record from the connected CRM.
MobileLockerCRMError on network failure, auth expiry, or server error.
Get all CRM users synced for the current team.
Raw user records from the connected CRM.
MobileLockerCRMError on network failure, auth expiry, or server error.
Get a specific CRM user by ID.
The CRM user ID to fetch.
Raw user record from the connected CRM.
MobileLockerCRMError on network failure, auth expiry, or server error.
Open the native customer picker UI and let the user select one or more customers.
An object with status ('selected' or 'cancelled') and an optional customers array.
MobileLockerError if called outside the iOS app.
MobileLockerCRMError on network failure or server error.
Get the customers currently associated with the active presentation session.
Array of Customer objects.
MobileLockerCRMError on network failure or server error.
Get the customers most recently viewed by the current user.
Array of Customer objects, newest first.
MobileLockerCRMError on network failure or server error.
Check whether a CRM object is currently associated with the active session.
The CRM object ID to check (e.g. a Salesforce Account ID).
true if the customer is current, false otherwise.
MobileLockerCRMError on network failure or server error.
Replace the current customers for the active session.
Array of CRM object IDs to set as current.
MobileLockerCRMError on network failure or server error.
Add a single customer to the current session without replacing existing ones.
The CRM object ID of the customer to add.
MobileLockerCRMError on network failure or server error.
Remove a single customer from the current session.
The CRM object ID of the customer to remove.
MobileLockerCRMError on network failure or server error.
Remove all customers from the current session.
MobileLockerCRMError on network failure or server error.
Trigger a CRM data refresh for the current user.
Optionaloptions: { mode?: CRMRefreshMode }Optionalmode?: CRMRefreshMode'incremental' (default) syncs only new/changed records; 'full' re-syncs everything.
An object with status: 'started' if the refresh was queued, 'not_connected' if the CRM is unreachable.
MobileLockerCRMError on auth expiry or server error.
Execute a SOQL query against the connected CRM.
A valid SOQL SELECT statement.
Optionalparameters: Record<string, unknown>Optional named bind parameters referenced in the SOQL string.
A CRMQueryResult containing rows, totalSize, and done.
MobileLockerCRMError with code SOQLInvalid on a syntax error, or on network/auth failure.
Get all CRM accounts synced for the current user.