vmh.falcao | 2020-07-01 00:17:47 UTC | #1
Is it possible to create the following format using the set participant data block ?
"attributes": { "questions": [ { "question01": [{ "startTime": "2020-06-30T20:04:43.261Z", "DADO-IN": "1" }], "question2": [{ "startTime": "2020-06-30T20:04:43.261Z", "DADO-IN": "6" }], ]}
Jerome.Saint-Marc | 2020-07-01 09:01:12 UTC | #2
Hello,
No, it is not possible.
Having a look at the Conversations API and the Request/Response schema where "attributes" is present, it is defined as "(Map<string, string>) Additional participant attributes." So setting a value of type array or object will not work (for each attribute in the "attributes" structure/object). Only values of type string. Note: if you set a participant data with an integer value/number, it will work but will be rendered back/stored as a string in the conversation.
Regards,
Jason_Mathison | 2020-07-01 12:33:32 UTC | #3
Hi vmh.falcao,
What is your end goal with storing this information?
--Jason
vmh.falcao | 2020-07-01 13:22:19 UTC | #4
Hi Jerome.
Thank you for your help.
vmh.falcao | 2020-07-01 13:34:04 UTC | #5
Hi Jason,
I have a survey IVR and I need to attach the answers inside the interaction for another system can get the survey answers by API.
When I use set partitipant data block, I have the following format:
"attributes": { "inivr":"2020-07-01T00:26:19.523Z", "getdados1": "2020-07-01T00:27:00.523Z" "question01": "2020-07-01T00:27:19.523Z", "dado-in": "1", "getdados2": "2020-07-01T00:28:19.523Z" "question02": "2020-07-01T00:30:19.523Z", "dado-in": "5", "outivr": "2020-07-01T00:32:19.523Z" },
I would like to group the survey data for not to mix with the other attributes of the IVR.
system | 2020-08-01 13:34:06 UTC | #6
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: 8155