Hi,
I know that it is possible to set custom parameters in PureCloud that you can access in Salesforce (via "Set Participant Data") and display in the script of the CTI plugin, but I would assume that it is also possible to access the sent parameters from code on Salesforce side? What I would like to do is the following;
- Create a case in Salesforce via PureCloud using the Salesforce REST API:
- I have successfully done this via Salesforce REST API with the "Salesforce Data Actions" integration by using a custom action.
- Send the case id received from the custom action to Salesforce:
- I understand this can be done via "Set Participant Data" and then using "Participant.SomeCustomParameter" in Salesforce.
- Retrieve the case id from code (on Salesforce side):
- I would assume that it is possible to listen for the "connected" event from PureCloud and that the custom parameter would be there, but I have not been able to test this because of my lack of knowledge of Salesforce API. Does anyone know if this is possible?
- Use Salesforce "Lightning Console JavaScript API for Lightning Experience" to open a tab with the case id received from PureCloud:
- I know that it is possible to open a tab, but the missing part here is how to use the case id received from PureCloud and if this approach is even possible.
The idea here is that the newly created case would screen pop in Salesforce. I know that there is a default "screen pop" in Salesforce via the plugin, but I have been told that it's not possible to use this because Salesforce wouldn't have had enough time to index the new case. Therefore I have to use the case id PureCloud received from the API call to Salesforce.
Any help on the matter is greatly appreciated. Thanks.