Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi, beautiful community.
I try to retrieve the URL of a file uploaded into an order.
In particular, through the back office, before fulfilling an order it's possible to add a PDF to the order.
When the order is fulfilled a Flow trigger starts and I would like to send an email to the customer with the URL (link) of the document.
I use this code to retrieve the custom field (type File) that contains the file:
{% for metafields_item in order.metafields %} {% for references_item in metafields_item.references %} Certificazione : {{references_item.GenericFile.url}} {% endfor %} {% endfor %}
But the result is the GID of the file:
gid://shopify/GenericFile/3682400822916
Any ideas?
Thanks,
Fernando
I already answered this question elsewhere. You cannot access the "GenericFile" like that yet in Flow.
You might be able to loop over the "fields" list in the reference to find the key and value for that field. I'm not sure what that will return in this use case without additional testing.
We do have a project underway to improve how you access metafields in Flow, which will make use cases like this much easier.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024