Dec 26, 2024 10:25 AM
Solved! Go to Solution.
Dec 26, 2024 07:18 PM
Use a 'Find records' action followed by a 'Repeating group' action that uses the results of the 'Find record' as a list:
This'll let you use each found record's ID inside the script, so you'll be triggering the webhook once per found record
Dec 26, 2024 01:32 PM
Hey @Marcin!
There are two different aspects to your question:
1. Trigger
2. Script
Regarding the Trigger. What do you exactly mean by "specific time trigger automation "?
Do remember that you can select the Trigger "At a scheduled time..", and you can furthermore select the corresponding time/frequency. See image below.
If you go this route, you'll probably want to have an action block after the Trigger which finds records which meet certain criteria, then loops through each record found, and runs the script below for each record found.
Alternatively, you can make the automation Trigger "when a record matches conditions".. By using certain date/time formulas, you can set a condition that will be met when a specific date/time is met (e.g. 2 days after record Creation Date or whatever). As the immediate next action, you'll run the script below on your automation.
Regarding the Script, you'll want to use the following script. Furthermore, on the left margin of your scripting block, you'll want to have "recordID" as key for your variable, and the value of the RecordID of the record which triggered the automation as the value.
let recordID = input.config().recordID;
var contentWebhook = await fetch(`https://hook.us1.make.com/impf3keb67247jkj6857cc2t0262f6f?recordID=${recordID}`);
Please let me know if this somehow helps, or else feel free to reach out via Private Message or provide further context here!
Mike, Consultant @ Automatic Nation
Dec 26, 2024 03:57 PM - edited Dec 26, 2024 03:57 PM
If you're new to Make’s advanced automations & integrations, I’ve assembled a bunch of Make training resources in this thread.
For example, here is one of the ways that you could instantly trigger a Make automation from Airtable.
I also give live demonstrations of how to use Make in many of my Airtable podcast appearances. For example, in this video, I show how to work with Airtable arrays in Make.
Hope this helps! If you’d like to hire an expert Airtable consultant to help you with anything Airtable-related, please feel free to contact me through my website: Airtable consultant — ScottWorld
Dec 26, 2024 07:18 PM
Use a 'Find records' action followed by a 'Repeating group' action that uses the results of the 'Find record' as a list:
This'll let you use each found record's ID inside the script, so you'll be triggering the webhook once per found record
Dec 26, 2024 09:38 PM
Method 1:
Change your Make automation to SEARCH for Airtable records instead of the Webhook+ Get a record Combo.
Method 2: Schedule an automation > Find suitable records > Run a script (command fetch + Make webhook URL)
Method 3: Trigger automation when record matches condition > Run a script (command fetch + Make webhook URL)
For your use case as described, I'd suggest Method 1, but I prefer Method 3 personally.
Dec 27, 2024 06:29 AM
Hi. Thank you for the solution. It does work somewhat as intended. It triggers a webhook but only once for a random record so it won't generate all the agreements that are meant to come from the AirTable but perhaps I can figure out how to loop through the integration in Make as it only runs once for a radnomly chosen record from the table.
Dec 27, 2024 06:33 AM
Hi. Thank you for your time. I wanted to create the agreement at a specific time so needed to run an automation at a specific time that would then trigger the webhook in Make which then would generate all the agreements.
A solution provided below seems somewhat to what you are suggesting and it works in the way of triggering the webhook but it does it only once so only one agreement is generated for a randomly chosen record in the AirTable.
Would you be able to share the date/time formulas approach in greater detail as this might be a solution if I staggered the records in couple of increments of each other so the Make webhook integration could be run until we loop through all the records.
Dec 27, 2024 07:05 PM
Hmm sounds like your 'Find record' step isn't returning the results you want. Could you provide a screenshot of the 'Find records' automation step set up, as well as a screenshot of the records you'd want it to find? That way I can help you figure out what the conditions should be for 'Find record' step