Hi,
I am building an application in Shopify, where I will be creating an document for users whenever order is fulfilled
so what I wanted to do , is when ever order is fulfilled and document is created, I want to show the link of document in order timeline event,
if it is not possible in timeline event, then can I do it on notes?
as I have tried a lot in notes, but only able to add text type there.
Hi,
You can add files to a timeline vents:
Thanks for the reply,
my question was can I do these above tasks using API, not from Shopify UI?
As an alternative, orders support metafields, so why not try them for adding links? You can update them via API & there are URL type metafields, too
Thanks for reply,
will try metafields,
it means we can’t add comment or attachment through api, as shopify have not provided this functionality right?
what about notes, does it support adding link functionality?
and also can you please tell , can i post some html content in order page through api?
I mean, you can add all kinds of stuff to order metafields via API, be it links or files, or text, or HTML. You just have to set them up properly.
From the documentation (https://shopify.dev/docs/api/admin-graphql/2023-07/mutations/orderUpdate) I see that order note can only store string values, hence the links were left as text. If this link/text is passed anywhere else after that, like in emails or whatnot, then you can modify it to make it a link afterwards
Can`t find anything about attaching files in Timeline via API, but I think there should be way to do so
Hi,
have tried the metafields and have put type also as url,
but what it’s doing is just storing the value . link is not clickable
I needed a clickable link, so that user can redirect to that URL.
You said you need this link for a user - customer or shop admin?
If for a customer, then do you reference this link in order notification or somewhere else?
Here is an example for order notifications with metafields for a customer:
Hello, {{ customer.first_name }}
{% if order.metafields.links.invoice.value != blank %}
You can download your invoice here:
DOWNLOAD
{% endif %}
Sometimes .value is not required & haven`t tested it, but you get the idea.
If this is for shop admin, then the small box on the right near the link takes you to the url, so it`s still clickable.
Hi, how are you? Is it possible to add/log an automation email being sent to the order timeline? Thanks

