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
Dec 30, 2024 04:06 AM
Hi Adam. Thank you for offering to troubleshoot this some more and I'm sorry for a late reply.
Here are screenshots that I think show everything that's needed. The base will have Printed Name and Email there in each record from the go. Rest will be filled once the agreement is filled (I know I've got some more steps to do in another workflow in Make but this should not be a problem).
Dec 30, 2024 05:27 AM - edited Dec 30, 2024 05:28 AM
Hmm, you've set up your automation to look for all records with an 'Email' value and then trigger the webhook once for each record. You mentioned that it only works only once on a random record, and that sounds like you're not actually running the automation, but testing it instead
Could you confirm that you turned on the automation and triggered it, and when it ran it only ran for one record despite the 'Find record' step finding multiple records? To trigger the automation manually, try using a checkbox field or something