简体   繁体   中英

For the Twilio Action - SendMessage, Where can i find the `conversationSid` ? This is to respond to an existing webchat

I have a basic twilio-flex 2.0 setup in my local. I have a plugin which basically renders a button. I am responding to a "customer" message which pops up in my list. I have a the button's "onClick" implemented to send a pretyped message, I am unable to find the conversationSid, that I need to plug into this below.

Actions.invokeAction('SendMessage',
                 {
                    body: "TBD",
                    conversationSid: "Where can i find this?"
                })})

For the sake of testing, I was able to find the conversationSid in the browser console and plugged it in there and message is sent. The documentation shows that the conversationSid is optional, but without it, nothing is sent. Any help or direction would be much appreciated?

Thanks to @csevero, i was able to figure out the way conversationSid: this.manager.store.getState().flex.chat.messageList.activeChatChannel

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM