The idea is to provide some sort of Error Identification on Webhooks. I have just processed a Webhook with 300 fields that was producing multiple errors... All code appeared exactly correct with no formatting issues, but the code that was sent from source had formatting issues, particularly multiple phone numbers that were sent formatted as Number if left blank, but suddenly changed to Text if completed. I had to set the Assignments as follows... ToText(Response("$.customer.default_address.phone", Text)) to get it to work.
The only way I was able to solve this issue, was to delete 300 assignments and iterators.. and add them in small batches, constantly testing the webhook, to identify the fields that were creating the issue... This took me best part of a full day.
If there was a way to report with parts of the webhook created an error, it would make for a much more effective, quicker and easy process to identify errors in creating webhook assignments and iterations. Otherwise you're literally flying blind.
Date Created 8/28/2023 3:24:20 AM
Date Updated 9/11/2023 5:03:09 AM
Kirill Bondar Staff 8/30/2023 7:53:18 AM
We should now report the problematic assignment (via the column it assigns to) in case error occured while processing Response("...") expressions