How to get Task Id passed back to Twilio function using plugin

  Kiến thức lập trình

To begin, the work here is based off of this write up for transfering Flex calls back to IVR Flows.
https://www.twilio.com/en-us/blog/transfer-calls-back-to-your-ivr-from-flex

That being said when when using the plugin file included in this github
https://github.com/bruno222/twilio-flex-plugin-transfer-to-ivr/blob/main/src/TwilioFlexTransferToIvrPlugin.tsx

You may noticed that it is pulling the task from the props object being passed through to the TransferToIVR function. From that task it is pulling the relevant call_sid or transferToIvrUrl to get us back to the flow. I need to get the task_sid from this task.

I was thinking I could just add the sid to the Propsinterface under task. And then when the request in made in OnClick() just pass through that additional value. This is not working as I expected. When logging the event object back in my twilio function only the call_sid and transferToIVRMenu are shown.

New contributor

Mark Thibodeaux is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT