Hello all,
Has anyone been able to use GraphQL syntax in a data action? I am attempting to do so but get an error.
This is the error:
7. Resolve request body template: Processing the Request Body Template resulted in invalid JSON.
- Unexpected character ('i' (code 105)): was expecting comma to separate Object entries at [Source: (String)"{ "query": "mutation CreateCustomer(VPCIMap:[providerContextPrefix: input ], map: {orgid=268a1671-cd4a-4f36-9442-5d2e1a023f01, item1=9qtkrgj3mkfq2mrv, integrationid=788ec842-49b6-4bb8-ad45-bc681151d52d, rawrequest={"item1":"9qtkrgj3mkfq2mrv","item2":"76d863090cd7bfd470627426af305ad5"}, item2=76d863090cd7bfd470627426af305ad5} ]: CreateCustomerInput!) { createCustomer(input: VPCIMap:[providerContextPrefix: input ], map: {orgid=268a1671-cd4a-4f36-9442-5d2e1a023f01, item1=9qtkrgj3mkfq2mrv, integr"[truncated 468 chars]; line: 2, column: 217]
This is the request body template:
{
"query": "mutation CreateCustomer($input: CreateCustomerInput!) {
createCustomer(input: $input) {
clientMutationId
customer {
id
legacyId
company
firstName
lastName
}
}
}",
"variables": {
"input": {
"clientMutationId": "FeliceTest12345",
"customer": {
"company": "FeliceTest-12345",
"firstName": "Felice",
"lastName": "Test"
}
}
}
}
In the contracts I configured item1 and item2 as strings.
Thank you,
Felice