anon84847021 | 2017-03-27 09:30:42 UTC | #1
Hi,
When creating a chat conversation from an external provider, the attributes I set are not visible from the Interaction Details pane on the agent screen.
Here is the chat creation:
POST /api/v2/conversations/chats Body: { "queueId":"62714149-3be3-4aa6-9423-cbc62a47147f", "provider":"Mickael", "attributes":{ "Attribute1":"My Attribute 1", "Attribute2":"My Attribute 2" }, "customerName":"External chat" }
I do see the attributes with GET /api/v2/conversations/chats :
{ "id": "d67a69f7-3456-46a9-89c8-2d3400ebce14", "participants": [ { "id": "f37faf95-1176-44c1-a6a8-3c58787d9c56", "name": "External chat", "startTime": "2017-03-27T09:20:08.994Z", "connectedTime": "2017-03-27T09:20:09.088Z", "purpose": "customer", "state": "connected", "held": false, "wrapupRequired": false, "queue": { "id": "62714149-3be3-4aa6-9423-cbc62a47147f", "selfUri": "/api/v2/routing/queues/62714149-3be3-4aa6-9423-cbc62a47147f" }, "attributes": { "context.Attribute2": "My Attribute 2", "context.Attribute1": "My Attribute 1" }, "provider": "Mickael", "roomId": "NONE" }, { "id": "27880f3d-2fbf-4d18-9d6e-2494a5d417c9", "name": "MP - Mickael Queue", "startTime": "2017-03-27T09:20:08.998Z", "connectedTime": "2017-03-27T09:20:09.121Z", "purpose": "acd", "state": "connected", "held": false, "wrapupRequired": false, "queue": { "id": "62714149-3be3-4aa6-9423-cbc62a47147f", "selfUri": "/api/v2/routing/queues/62714149-3be3-4aa6-9423-cbc62a47147f" }, "attributes": {}, "provider": "Mickael", "roomId": "NONE" }, { "id": "775ea057-ba80-4d04-9788-3145f53b56d1", "startTime": "2017-03-27T09:20:09.209Z", "endTime": "2017-03-27T09:20:39.426Z", "purpose": "agent", "state": "disconnected", "disconnectType": "system", "held": false, "wrapupRequired": false, "wrapupPrompt": "optional", "user": { "id": "3d4e1e73-4235-4aa4-8991-b9f3b54a196a", "selfUri": "/api/v2/users/3d4e1e73-4235-4aa4-8991-b9f3b54a196a" }, "queue": { "id": "62714149-3be3-4aa6-9423-cbc62a47147f", "selfUri": "/api/v2/routing/queues/62714149-3be3-4aa6-9423-cbc62a47147f" }, "attributes": {}, "provider": "Mickael", "roomId": "NONE" } ], "otherMediaUris": [], "selfUri": "/api/v2/conversations/chats/d67a69f7-3456-46a9-89c8-2d3400ebce14" }
But they are missing from the Interaction Details:
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/d3909a718d82ffd9eaa4547e3deda64aa0959890.png" width="304" height="265">
Is this the expected behavior?
Correlation ID: 47bfff7c-6a58-4fb4-a996-1957f7d28a66
Thanks for your help.
anon84847021 | 2017-03-27 09:58:59 UTC | #2
Seems like attributes define here are working fine: https://developer.mypurecloud.com/api/webchat/
Thanks for your help @anon25707902!
system | 2017-08-28 19:33:23 UTC | #3
This post was migrated from the old Developer Forum.
ref: 1111