Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here
Dec 01, 2021 07:01 PM
Hey all,
I need to write an automation for the following scenario:
They have an API where this is possible – just need to figure out how to write the JS code to call the API. I’ve written some automation code before with AirTable in JS – so I’m familiar with writing JS in and of itself…its just the calling the API part that I need some assistance with.
Thoughts?
Thank you, everyone,
Dinos
Dec 01, 2021 08:47 PM
Welcome to the community, @Dinos_Papoulias! :grinning_face_with_big_eyes: You’ll need to dig into the FreshBooks API documentation to see what’s required for such an API request, namely the method (GET/POST/PATCH???), the authentication process, required headers, and the type and format of the data (probably JSON). You’ll end up using the fetch
command to execute the request. If you look in the documentation for the fetch
command in Airtable’s scripting API reference, there are examples that can probably take you in the right direction. If you run into any issues, feel free to ask for help here.