I’ve made an automation where make is pulling a URL that holds a group of images.
The URL looks like this as an example:
https://website.com/groupimageurl~1/
If the group of images had 5 images, the URL would look like this:
https://website.com/groupimageurl~5/
Every image is at a subsequent address that looks like this:
https://website.com/groupimageurl~5/nth/0/
https://website.com/groupimageurl~5/nth/1/
https://website.com/groupimageurl~5/nth/2/
https://website.com/groupimageurl~5/nth/3/
https://website.com/groupimageurl~5/nth/4/
Here’s what that looks like mapped in make:
The pink tag that says “multi-image” is generating the unique URL.
This is working nicely! As long as I have a group of exactly 5 images!
It it’s less, it will fail to upload to my CMS (webflow multi-image field).
My question is this:
Is there a way to tell make.com to look at the URL for the number of images available (that last part that says “~5” means there are 5 images. If it said “~4” I would want it to only try to retrieve 4).
In other words, can I have make look at the last few characters of that URL and make a decision based off of that?
I hope this makes sense! Thanks for your time.