Skip to content
How to perform GET ...
 
Notifications
Clear all

How to perform GET and POST requests

5 Posts
3 Users
0 Reactions
4 Views
Brandon_Harding
(@brandon_harding)
Posts: 3
Active Member
Topic starter
 

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.

scenario

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

image

2 of 2

Any guidance on POSTing data originating from another source would be greatly appreciated.

 
Posted : 01/03/2024 2:41 pm
Dorian_Ben_Haim
(@dorian_ben_haim)
Posts: 4
New Member
 

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.

 
Posted : 01/03/2024 2:44 pm
Brandon_Harding
(@brandon_harding)
Posts: 3
Active Member
Topic starter
 

Thanks! I attempted adding quotes, but I'm still encountering a 500 error.

image

I've contacted SOS Inventory for assistance.

 
Posted : 01/03/2024 3:01 pm
Donald_Mitchell
(@donald_mitchell)
Posts: 36
Eminent Member
 

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.

 
Posted : 03/03/2024 8:25 am
Brandon_Harding
(@brandon_harding)
Posts: 3
Active Member
Topic starter
 

Thanks Donald. I was considering this approach and coupling it with a regular HTTP request module.

 
Posted : 03/03/2024 8:22 pm
Share: