Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
What is the best way to retrieve a specific customer data in Shopify flow?
For my purpose, I am working on a reference program. When a customer requests a shareable link, the customer.id is added to the register url of the shop and presented as a shareable link. It looks something like as follows:
https://{shop}.com/account/register?reference={customer id}
When someone register using the URL, I'm adding the reference value as a note to the new customer account.
Then Shopify flow picks up the "Customer Created" trigger, and checks if the customer has a 'reference' note. If it does, Flow assigns a metafield value for the newly created customer account. It's working as expected up to this point.
I also want Flow to update a metafield value of the customer who shared the link. Here's where the problem arises. what is the best way to get the customer object of the customer who shared the link? from the newly created account, I can access the customer.id of the sharer.
If a shop has a small number of customers, then it'll not be difficult, I can fetch 100, and filter. But when the shop will have thousands of customer account,(I don't know how much, I just want it to scale reliably) can I reliably do it with id?
Reference of the workflow.
Hey Mave_mohiuddin,
Heddy from Gameball: Loyalty Program & VIP here!
While Shopify Flow doesn't allow direct access to specific customer data, you can use workarounds like customer tags or custom fields via apps like Shopify Scripts or Mechanic to trigger actions based on those attributes. If you’re looking for more advanced options, Gameball offers powerful customer segmentation and data analytics, allowing you to personalize campaigns and automations based on behavior and purchase history—going beyond what Flow offers.
Let me know if you'd like more details on setting this up!
Thank you very much for the insight. I'll try to make use of tags. This is a passion project, not for a customer's request. Thus, I am not considering using an app for solution. However, if I end up doing it for a customer, I'll consider Gameball.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024