Thank you, Dave! That worked like a charm!
Topic summary
Goal: Use Shopify Flow to update a customer loyalty points metafield by incorporating new order value (targeting 5% accumulation).
Key constraint: Flow cannot access metafields via dot-delimited paths (e.g., customer.metafields.namespace.key). Must iterate over metafields.
Solution provided: In the Flow action’s Value field, use Liquid to loop through order.customer.metafields and match namespace “loyalty” and key “points” to retrieve the existing value into a variable (e.g., accumulation). This approach worked for the requester.
Artifacts: The Liquid snippet is central to the resolution; a screenshot was referenced but not required to understand the fix.
Related issue: Another user’s Flow output for a product metafield (“contributor”) was blank. Recommendation was to output the raw metafield value first and apply filters step-by-step to isolate the problem. The user later confirmed it was a mistake on their side and it’s resolved.
Status: Both the original and follow-up issues are resolved. No open questions remain.