I have an automation defined as follows:
This call an external API in the backend.
Everything works ok, but I need to have access to the response it gives me to use it in subsequent steps. At least to know if it didn’t give error:
Response when the URL is incorrect:
Task Properties
{
“Exception”: "Webhook HTTP post request failed with exception The remote server returned an error: (404) Not Found. ",
“Task Type”: “Webhook”,
“Task Name”: “Call Api to Create User”,
“Url”: “http://someurl.com/api/1.0/device/register1”,
“Verb”: “Post”,
“MimeType”: “application/json”,
“Headers”: “”,
“Payload”: “{"email": "someone@somedomain.com","first_name": "Nick","last_name": "Benedict","os": null,"phone_number": "1234567890"}”
}
Response when ok:
Task Properties
{
“Response”: “{\n "payload": {\n "id": 893,\n "is_vendor": false,\n "dealer_id": 0,\n "is_enrolled_user": false,\n "is_dealer_owner": false,\n "is_admin": false,\n "sales_person_id": 0,\n "tax_id": null,\n "is_dispatcher": false,\n "is_service_manager": false,\n "vendor_id": 0,\n "is_vendor_sales": false,\n "vendor": null,\n "mechanic_id": 0\n },\n "result": {\n "success": true,\n "errors": \n }\n}”,
“Task Type”: “Webhook”,
“Task Name”: “Call Api to Create User”,
“Url”: “http://someurl.com/api/1.0/device/register”,
“Verb”: “Post”,
“MimeType”: “application/json”,
“Headers”: “”,
“Payload”: “{"email": "someone@somedomain.com","first_name": "Nick","last_name": "Benedict","os": null,"phone_number": "1234567890"}”
}
I work with AppSheetCORE (GOOGLE WORKSPACE).
Thanks…
