Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
So I currently have a flow that is triggered when a tag is added to the customer and a condition that checks if the tag is pending approval. If it is, I want it to run code to check if the current date - customer's created at date is greater than a certain period of time (let's pretend its a month for now). However the run code graphql Query needs a customer id to query the created at date. How can I get that for each customer and apply that in the flow?
you should be able to just include the liquid variable {{ customer.id }} since its already given to you based on the trigger you selected
I don't want to check for a certain customer/customer id, but I want to check if each of the current_time - customers created at time for each customer when customer tag is added is greater than a month in run code. Then if it is, delete the customer.
Never mind I have solved the problem. Thanks!
For others could you share how you solved the problem.
You can reply to your own post and mark it as a solution
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025