Aug 29, 2024 01:32 PM
Hi, I'm running an automation that monitors a table for certain fields and when any of those fields get updated, I want to run script that sends those field values to an external platform, via an API call to that platform. I know how to write this script, however I can't figure out how to reference the specific record whose field was updated. Is this possible?
Here is a screenshot of my automation.
Aug 29, 2024 11:58 PM
Aug 30, 2024 12:00 AM - edited Aug 30, 2024 12:01 AM
Yes, you need to specify the triggering record ID as a variable in the input.config.
I show how to do this when sending records to Make’s advanced API platform in the thread below — be sure to look at the screenshots that I posted:
Aug 30, 2024 08:17 PM
Hi,
to avoid querying the record by RecordID, you can just add those 3 values to a left side
and then
const {status,country,camp_office}=input.config()
note that variable names in code must match variable names you set in the left side.
you can also avoid hardcoding and simply pass all available data from left side, cloning input.config() and possibly add some data to it. of course, it depends on platform API requirements
Sep 01, 2024 01:24 PM
Thanks so much for your quick responses!