JS Bridge Methods Availability
Here you can find JS Bridge methods that you can use in CLM presentations.
Important Notes
When you launch the Remote Detailing meeting in the CT Mobile app, CRM data captured by JS Bridge will be uploaded to Salesforce and not stored on the mobile device. A user should have permission to edit records of the corresponding object. For example, if you create a new record using ctm.create, it will be uploaded to Salesforce, and you should launch fast synchronization to download it to a mobile device.
When you open a CLM presentation in the Application module, from the carousel of CLM presentations on the Home screen or mobile layout in the CT Mobile app, CRM data captured by JS Bridge will be saved to the mobile device. In this case, the corresponding object should be available offline, and a user should have permission to edit its records. To upload data to Salesforce, perform the fast synchronization.
Feature |
Applications (on a tablet) |
Remote Detailing |
Comment |
|||
iOS |
Android |
Windows |
||||
Methods for interaction with CRM data |
Yes |
Yes |
Yes |
Yes |
||
Yes |
Yes |
Yes |
No |
|||
Query records: ctm.query |
Yes |
Yes |
Yes |
Yes |
These methods are forbidden during the Self Detailing and Self Detailing 2.0 meetings. |
|
Create records: ctm.create |
Yes |
Yes |
Yes |
Yes |
||
Update records: ctm.update |
Yes |
Yes |
Yes |
Yes |
||
Delete records: ctm.delete |
Yes |
Yes |
Yes |
Yes |
||
Start fast sync: ctm.sync |
Yes |
Yes |
No |
No |
||
Obtain the path to the file: ctm.getFile |
Yes |
No |
Yes |
No |
||
Save attachments: ctm.storeFile |
Yes |
No |
Yes |
No |
||
Custom data tables according to related record: ctm.openDataTableByParentRecord |
Yes |
No |
No |
No |
||
Custom data tables according to SOQL query: ctm.openDataTableByQuery |
Yes |
No |
No |
No |
||
Methods for Accessing External Functionality |
Camera access: ctm.photo |
Yes |
Yes |
No |
No |
|
Open QR Code: ctm.openQRScanner |
Yes |
No |
No |
No |
||
Quiz launch: ctm.openQuiz |
Yes |
No |
No |
No |
||
PDF generation: ctm.generatePDF |
Yes |
No |
No |
No |
||
Sound recording: CTAPPstopRecordingAudio |
Yes |
No |
No |
No |
||
Sound recording: CTAPPstartRecordingAudio |
Yes |
No |
No |
No |
||
The transition from Animation to Sales Order: ctm.createSalesOrderWithAnimations |
Yes |
No |
No |
No |
||
Exit from presentation: ctm.autoExitPresenter |
Yes |
No |
Yes |
No |
||
Methods for CLM presentation control |
Like: ctm.like |
Yes |
Yes |
Yes |
No |
|
Dislike: ctm.dislike |
Yes |
Yes |
Yes |
No |
||
Disable slide scroll: ctm.disableSlideScroll |
Yes |
No |
No |
No |
||
Enable slide scroll: ctm.enableSlideScroll |
Yes |
No |
No |
No |
||
Activate gathering statistics of presentation: ctm.customStats |
Yes |
No |
No |
No |
||
No |
No |
Yes |
No |
|||
Methods for CLM presentation navigation |
Yes |
No |
Yes |
Yes |
||
Yes |
No |
Yes |
Yes |
|||
Yes |
No |
Yes |
Yes |
|||
Yes |
No |
Yes |
Yes |
|||
Yes |
Yes |
Yes |
No |
|||
Methods for Remote Detailing 2.0 |
Define the meeting type: ctm.getAppEnv |
No |
No |
No |
Yes |
These methods are used during the Remote Detailing 2.0 or Self Detailing 2.0 meeting. |
Define the Id of the Activity record: ctm.getVisitId |
No |
No |
No |
Yes |
||
Define the user role: ctm.getUserType |
No |
No |
No |
Yes |
||
Secure query records: ctm.secureQuery |
No |
No |
No |
Yes |
This method is used during the Self Detailing 2.0 meeting instead of ctm.query. |
|
CTAPPturnOnAudio |
No |
No |
No |
Yes |
These methods affect only the presenter’s audio and video stream even if called by the participant. |
|
CTAPPturnOffAudio |
No |
No |
No |
Yes |
||
CTAPPturnOnVideo |
No |
No |
No |
Yes |
||
CTAPPturnOffVideo |
No |
No |
No |
Yes |
||
Outdated methods |
skipTenPercent |
Yes |
No |
No |
No |
|
playVideo |
Yes |
No |
No |
No |
||
getJSValues |
Yes |
No |
No |
No |
||
CTAPPNewRecord |
Yes |
No |
No |
No |
||