agilio | 2021-04-01 23:56:45 UTC | #1
When using the POST /api/v2/conversations/emails the attributes we are creating are not staying with the conversation. Is the syntax we are using incorrect?
{ "queueId": "xxxxxxxx-4c3d-4e91-9566-aaxxxxxxxxxx", "flowId": "", "provider": "PureCloud Email", "skillIds": [], "languageId": "", "priority": 0, "attributes": {"firstname":"Joe","lastname":"smoe"}, "toAddress": "jsmoe@test.com", "toName": "Joe Smoe", "fromAddress": "agilio@test.com", "fromName": "Agilio", "subject": "Test", "direction": "OUTBOUND", "htmlBody": "", "textBody": "" }
Here is a result from a get conversations which we are not seeing that participate data in the attributes?
{ "id": "xxxx", "startTime": "2021-04-01T23:47:40.366Z", "address": "anthonyqueuxxxx", "participants": [ { "id": "xxxx", "startTime": "2021-04-01T23:47:40.366Z", "connectedTime": "2021-04-01T23:47:40.366Z", "name": "Avtex", "userUri": "/api/v2/users/xxxx", "userId": "xxxx", "queueId": "xxxx", "queueName": "Anthony Queue", "purpose": "agent", "address": "anthonyqueuexxxxx", "wrapupRequired": true, "wrapupPrompt": "timeout", "wrapupTimeoutMs": 120000, "attributes": {},
"calls": [], "callbacks": [], "chats": [], "cobrowsesessions": [], "emails": [ { "state": "connected", "id": "0e991d2e-7299-47f0-a711-e038cfcfab22", "held": false, "subject": "Test", "messagesSent": 0, "segments": [ { "startTime": "2021-04-01T23:47:40.366Z", "type": "Interact", "howEnded": "Disconnect" } ], "direction": "outbound", "connectedTime": "2021-04-01T23:47:40.375Z", "autoGenerated": false, "provider": "PureCloud Email", "peerId": "xxxx", "draftAttachments": [], "spam": false, "afterCallWork": {}, "afterCallWorkRequired": false } ], "messages": [], "screenshares": [], "socialExpressions": [], "videos": [] }, { "id": "xxxx9", "startTime": "2021-04-01T23:47:40.373Z", "connectedTime": "2021-04-01T23:47:40.373Z", "name": "Joe Smoe", "purpose": "external", "address": "jsmoe@test.com", "wrapupRequired": false, "attributes": {}, "calls": [], "callbacks": [], "chats": [], "cobrowsesessions": [], "emails": [ { "state": "connected", "id": "xxxx", "held": false, "subject": "Test", "messagesSent": 0, "segments": [ { "startTime": "2021-04-01T23:47:40.373Z", "type": "Interact", "howEnded": "Disconnect" } ], "direction": "outbound", "connectedTime": "2021-04-01T23:47:40.417Z", "autoGenerated": false, "provider": "PureCloud Email", "peerId": "xxx", "draftAttachments": [], "spam": false, "afterCallWork": {}, "afterCallWorkRequired": false } ], "messages": [], "screenshares": [], "socialExpressions": [], "videos": [] } ], "recordingState": "NONE", "divisions": [ { "division": { "id": "xxxxxx", "selfUri": "/api/v2/authorization/divisions/xxxxxxx" }, "entities": [ { "id": "xxxxx }, { "id": "xxxx", "selfUri": "/api/v2/users/xxxx" } ] } ], "selfUri": "/api/v2/conversations/xxxx" }
agilio | 2021-04-05 15:34:12 UTC | #2
Morning any thoughts or suggestions?
Jerome.Saint-Marc | 2021-04-06 12:27:30 UTC | #3
Hello,
I have just done a test and I am noticing the same behavior (attributes not saved in the conversation).
I would recommend to open a ticket with Genesys Care so they can investigate and check if it is a bug on this API endpoint, or if it is an issue with the documentation (in case attributes are not supported on the Create Outbound Email).
In the meantime, you could still trigger a PATCH /api/v2/conversations/{conversationId}/participants/{participantId}/attributes or a PATCH /api/v2/conversations/emails/{conversationId}/participants/{participantId}/attributes after the email conversation is created to update the attributes (you'll also need to get the participantId using a Get Conversation).
Regards,
agilio | 2021-04-06 14:48:37 UTC | #4
Thanks for confirming I have opened 0002900911. If there is anything you could do to help push this I would appreciate it.
system | 2021-05-07 14:48:42 UTC | #5
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: 10486