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 %}
Copy
But the result is the GID of the file:
gid://shopify/GenericFile/3682400822916
Any ideas?
Thanks,
Fernando