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
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025