Alessandro_Casolla | 2018-08-01 15:42:59 UTC | #1
Hi, I'm developing an integration with the embeddable framework. The integration uses the attachdata set by the customer on the flow, and then uses them on the client to perform some kind of logic. The problem is that we need to specify the attach data that we want to use in the customInteractionAttributes section of the framework.js, example : .. customInteractionAttributes: ['ParticipantData', 'context.firstName', 'context.phoneNumber'], ..
There is a way to receive ALL the attachdata without specifying them in the framework.js file ? Something like : .. customInteractionAttributes: ['*'], ..
Chris_Phillips | 2018-08-10 19:18:54 UTC | #2
Hi Alessandro
I don't think wildcards work. The only ways I can think of doing it is
- Control the list from your Web application the embedds the PEF. This is what we do. Our framework file waits for the page hosting it to send a POST message telling it what custom attributes to support, only then does it initialize the PEF. That means you can set the list on loading of the web page.
- Lookup the conversation data using the JS API directly rather than getting it from PEF events.
Good luck
Chris
tim.smith | 2018-08-10 20:01:34 UTC | #3
You must be explicit about the attributes you want when using customInteractionAttributes. If you need to get them all without knowing their names beforehand, retrieve the conversation via the conversations API.
system | 2018-09-10 20:14:22 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 3306