9,280
edits
No edit summary |
|||
Line 37: | Line 37: | ||
If you want to initiate and receive calls directly from the Dynamics backend: | If you want to initiate and receive calls directly from the Dynamics backend: | ||
* Create an app project with the name "Houston" and enter the same Agora credentials as in your usual project. | * Create an app project with the name "Houston" and enter the same Agora credentials as in your usual project. | ||
* | * If you want to receive calls, you must register your browser to receive notifications. This is a one-time action. As a security measure from the browser, this cannot be automated. Log in to Dynamics, go to '''Resco Suite > Houston''', and click '''Register Houston'''.<br>[[File:Register houston in dynamics.png|600px]] | ||
* If you want to initiate calls, you can for example add a button on the Dynamics user form that would point to the URL <code><nowiki>https://<dynamics-organization-url>/webresources/resco_MobileCRM/WebClient/registerHouston.html?data={encodedData}</nowiki></code>. Encoded data must be created in the following format: | |||
:<syntaxhighlight lang="js"> | |||
var calleeId = "callee's id"; | |||
var calleeName = "callee's name"; | |||
var encodedData = encodeURIComponent("call&calleeId=" + calleeId + "&calleeName=" + calleeName); | |||
</syntaxhighlight> | |||
== Add the command for initiating calls == | == Add the command for initiating calls == | ||
Line 44: | Line 50: | ||
* In questionnaires | * In questionnaires | ||
* In entity forms | * In entity forms | ||
=== Set up your questionnaire === | === Set up your questionnaire === | ||
Line 63: | Line 68: | ||
[[File:Add houston command.png]] | [[File:Add houston command.png]] | ||
== Start a call == | == Start a call == |