Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi there,
I would like to create a flow when a metafield on customer is added or updated. I looked for the trigger but I couldn't find "customer updated", only saw "customer created", "customer deleted", etc. Am I looking for the right trigger for that purpose? Or do I need to create a trigger for this purpose? Any suggestions on how to handle this? Thank you 🙏
I think I found the answer from this post below, but does anyone have better suggestions? Also, if I need to use webhook, what type of event I need to listen to? I don't see anything listed about metafield for customer in this list, https://shopify.dev/docs/api/webhooks?reference=toml#list-of-topics-customers/update. Dose it consider customer/update? Will appreciate any help.
Hi @ml44,
Flow doesn't have a customer updated trigger available yet because the event that is provided doesn't provide context on what actually changed. So in that case, there would not be a native way to distinguish a metafield change event from other customer updates.
These sort of events are on the team's radar but I don't have anything I can share about that yet.
In the interim, it could be worth understanding what action would set or update the metafield value. Maybe there is a different event which could still work for your purpose (ie when order created, if the lifetime value is greater than some number, set a metafield)
Hope that helps.
Hi DaveMcV,
Thank you for your reply. What we try to do is that when a shopify customer takes some actions on our shop, we want to add a metafield to their customer account. we would like to keep track of that metafield's change. I know we could have listen to those actions that taken by the customer, but we just try to do that from 1 place, instead of multiple sources.
Hi @DaveMcV
Do you know what kind of actions taken in the Shopify site will trigger customers/update event? So far I saw when an order is placed, that event is triggered. Do you know why? Thank you in advance.
I believe it will include any edit you make on the Customer page in the Admin, as well as some actions like adding address, etc.
In today’s interview, we sat down with @BSS-TekLabs to discuss practical strategies for...
By JasonH Nov 13, 2024The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024