I’m experimenting with Shopify Flow to generate point accumulation for customers after each purchase. I’ve made a customer metafield, customer.metafield.loyalty.points set to JSON, that would store accumulated points value. Now I’m trying to make a Flow that would fetch the existing value of the metafield and add 5% of the new order value to it.
See the image attached - what code should I put in the value field in order to achieve this? Or am I getting the whole idea wrong and this should be done elsewhere rather than Flow?
@cybko That appears correct to me. Have you tried just assigning the metafield value without any filters to see what happens? It’s possible the value isn’t found or isn’t what you expect. If you are getting what you expect, then you could try applying the liquid filters one by one until you find the one causing the issue.
It’s hard to know without some more details. Could you post screenshots of the workflow run log, the metafield definition, and the metafield value on the product from that run?