SergioRota | 2018-03-06 14:08:54 UTC | #1
Hi ,
i have to create a ticket in Dynamics CRM form Custom Action in Purecloud
I able to create an Account by Custom Action:
Custom Action Account Creation:
Contract: Input: { "$schema": "http://json-schema.org/draft-04/schema#", "title": "Update name request", "description": "Update user's first and/or last name", "type": "object", "required": [ "NAME", "LASTNAME" ], "properties": { "NAME": { "description": "Users first name", "type": "string" }, "LASTNAME": { "description": "User last name", "type": "string" } } }
Configuration: Request: { "requestUrlTemplate": "/api/data/v8.1/accounts", "requestType": "POST", "headers": { "Content-Type": "application/json", "UserAgent": "PureCloudIntegrations/1.0", "Company": "My company", "Transfer-Encoding": "buffered" }, "requestTemplate": "{\"name\": \"$input.NAME\",\"sincodicefiscale\": \"$input.LASTNAME\"}" }
Response:
{ "translationMap": {}, "successTemplate": "[${rawResult}]" }
This schema for incidents fails, why?
Thanks Sergio
Jason_Mathison | 2018-03-07 15:29:56 UTC | #2
Were you able to resolve this?
SergioRota | 2018-03-07 16:18:21 UTC | #3
Yes! Can i delete the post?
Thanks Sergio
Jason_Mathison | 2018-03-07 16:23:28 UTC | #4
I would rather you post what you did that solved the problem. That way another person who runs into the same problem may be able to use your solution. Also, it might point out a way we could improve our product to either avoid the problem or give a more useful error message.
system | 2018-04-07 16:23:31 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: 2514