Shopify Flow, Uploading a File and adding to an Order.

Shopify Flow, Uploading a File and adding to an Order.

nyvs_
Shopify Partner
2 0 1

Hello,

I am developing an app that creates a file from input given via shopify flow.
It creates a pdf file and returns the publicly accessible url back into flow.

I then use "Send Admin API Request" with "fileCreate" to upload the file, using the url from earlier.
So the plan is to use the returning gid for attaching to the order it belongs to, using another Send Admin API Request-Node with "metafieldsSet".


However, "Send Admin API Request" doesn't return the gid, like the "Shopify GraphiQL App" does it.

Also, I cannot query files in the "Run Code"-Action.

How do I retrieve the resulting File-GID?

Many thanks and kind regards,
Jan

Reply 1 (1)

Kalen_Jordan
Shopify Partner
641 25 104

Yeah there's basically no way to get any output back from the send admin api call action unfortunately. That is something they have in the pipeline. Only way to do it would be if there's a way that you can trigger another flow somehow from the main flow and then if the main flow is able to query that file from somewhere. Might not be possible.