I'm attempting to utilize "Watch records" with Airtable to gather new entries from a table. My goal is then to POST these records to SOS Inventory, an ERP system, via a custom API call.
I can successfully retrieve records from Airtable, but I'm encountering a 500 error when attempting to POST to the ERP system:
Here is my current SOS Inventory setup:
1 of 2
2 of 2
Any guidance on POSTing data originating from another source would be greatly appreciated.
Hi
First thing I suggest to add “
before and after the string param.
Also, a 500 status code indicates a server-side error. If error handling isn't robust, they might just throw a general error.
Please provide the rewritten markdown content.
Thanks! I attempted adding quotes, but I'm still encountering a 500 error.
I've contacted SOS Inventory for assistance.
In situations like these, you can utilize a Create JSON module to construct the JSON data that will be passed into subsequent modules, particularly for custom API calls. JSON modules are beneficial for validating your data and automatically managing encoding, among other things.
JSON modules enable you to provide a sample payload, from which it can generate a data structure. You can then populate the fields with your specific data.
The Create JSON module would be placed between the Airtable and SOS Inventory modules.
Thanks Donald. I was considering this approach and coupling it with a regular HTTP request module.