Hi
I’ve got my weekly summary task email from zapier and noticed that one specific Zap (runs once per month) used up to 295 tasks.
Which is a lot.
So I’m here wondering if any of you have a similar use case and how you guys limit the actions.
Use case:
* Woocommerce webshop
* I need all orders that ordered a specifik Product variation.
I’m using the woocommerce API with the built in filter on product ID:
/wp-json/wc/v3/orders?status=completed,processing&after=2021-07-30T18:46:32&per_page=50&product=2111&order=desc
There’s no built in filter with the API to pass through a variation ID. So I’m forced to use a loop with a condition:
=> Which is the reason of the many actions. If the API call returns 50 lines; each line can contain more than one product/variation which need to be filtered.
Any suggestions to get the number of actions down? (I can limit the amount with the date, but currently I’m only fetching the first 50 returned lines anyway)
Thanks in advance for having a look at it.