I’m creating a flow which inserts records into a MS SQL table; one of the fields is a unique ID created via NEWID().
The insert result appears in the SQL connection debug log:
{"response":[{"value":"7B45B75E-2103-406D-8D9F-8000EF6CCA3C","metadata":{"userType":0,"flags":8,"type":{"id":36,"type":"GUIDN","name":"UniqueIdentifier"},"dataLength":16,"colName":"ExternalExpenseId"}}]}
However, I cannot determine how to map the value returned in the Response Mapping screen.
I’ve tried MANY combinations of mock data, field mappings, JSON, you name it, but I can’t figure out if the SQL server response actually ends up in the Celigo flow anywhere.
Here is my current mock response in my Import step: Pretty sure I’m following the instructions where it says to replace the MockResponse key and data with my own:
[
{
"id": "1234567890",
"errors": [],
"_json": {
"id": "1234567890",
"response": [
{
"value": "7B45B75E-2103-406D-8D9F-8000EF6CCA3C",
"metadata": {
"userType": 0,
"flags": 8,
"type": {
"id": 36,
"type": "GUIDN",
"name": "UniqueIdentifier"
},
"dataLength": 16,
"colName": "ExternalExpenseId"
}
}
]
},
"statusCode": 200,
"ignored": false,
"dataURI": "",
"_headers": {
"content-type": "application/json; charset=utf-8"
}
}
]
I’ve tried _json.response[0].value, response.value, response[0].value, and many other permutations of manually entered paths; for some of these I can see the result in the mapper. However, the value is empty at the next import step.
How can I extract the REAL response MS SQL server is returning?