I'm trying to set up a simple zap.
I run an online store and I would like to post a "product of the day".
I'd like this to be random products from my website.
I'm wondering what's the best way to do this?
I'm trying to set up a simple zap.
I run an online store and I would like to post a "product of the day".
I'd like this to be random products from my website.
I'm wondering what's the best way to do this?
Best answer by PaulKortmanBest answer by PaulKortman
There's a couple ways to solve this, but I would want to know what the ecommerce/CMS platform is that runs your site.
Because you could do this "manually" of having a list of product URLs in a Google Sheet that the Zap pulls a random row from, but you'd have to keep the sheet up to date if the Products or the product URLs change.
So based on the CMS I would see if you can have another zap that adds/deletes/modifies rows in that sheet when products are updated/added/removed from the site.
Once you get that then you could do one of the following methods for actually grabbing a "random" row from the sheet.
Option 1: round robin https://community.zapier.com/discussion/133/easy-edit-round-robins-using-a-google-sheet Basically start at the top and choose the next row each time, this ensures you're not repeating twice in a row. (I use the Modulo method mentioned by
Option 2: random row selection: https://community.zapier.com/discussion/43/select-a-random-row-value-in-a-google-sheet use the RANDBETWEEN() To get a random row number between 2 and the last row. Then use a google sheets step to get the value of that row number.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.