Set Up a Web Application for Integration
Integrate with easyXDM to transfer data between your web application and Salesforce
CPQ.
| Available in: Salesforce CPQ Winter ’18 and later |
- Add the easyXDM library to your web application. You can find the library at http://easyxdm.net/wp/.
-
Use the easyXDM.RPC constructor with the following configuration. Set the configuration’s
keys to postMessage.
1var rpc = new easyXDM.Rpc({},{ 2 remote: { 3 postMessage: {} // This method is defined in SteelBrick 4 }, 5 local: { 6 postMessage: function(message) { 7 // Do something with the JSON string that is received from SteelBrick. 8 } 9 } 10}); -
After configuring the JSON, use Salesforce CPQ’s postMessage method to send the JSON string
back to the Salesforce CPQ app.
1rpc.postMessage(JSON-string);