We have Twilio Flex running in a Channel Integration Framework (CIF) panel embedded in Dynamics CRM. Using CIF it is possible to interact with Dynamics CRM from Twilio Flex, and it is possible for Twilio Flex to listen for CIF events coming out of Dynamics CRM.
For instance, the standard phone number field button on CRM raises an 'onclicktoact' CIF event through the framework, which can be captured in the Flex panel to start outbound calls in Twilio Flex.
However, during a call in Twilio, we require to update the call context in Twilio with information coming out of CRM - e.g. the CRM ID of a new record being created, or details on changes to an existing record.
How do I raise a custom 'onclicktoact' event in Dynamics CRM through CIF to make Twilio aware of changes happening in Dynamics CRM? Is it possible to raise such an event in JavaScript on a button in the ribbon within Dynamics CRM?