url to download graphql bulkoperation

Shopify Partner
3 0 0

so I've performed a bulk operation and got back the result id like in the examples

  "id": "gid:\/\/shopify\/BulkOperation\/720918",

How do I construct a url to retrieve this file?

0 Likes
Shopify Partner
948 97 151

You get the URL to download the data in the JSONL format in response to your https://help.shopify.com/en/api/graphql-admin-api/reference/mutation/bulkoperationrunquery, BulkOperation.url

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes
Shopify Partner
3 0 0

I get that a URL is returned. It's returned in the form 

gid:\/\/shopify\/BulkOperation\/72091 

My question is - how do I use this? What exactly do I type in the browser to get a response?

0 Likes
Highlighted
Shopify Partner
948 97 151

Nope, that is the graphql URL to the BulkOperation object. So you just need to query that object, specifically its "url" attribute, which should be an HTTPs based URL resource.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes
Shopify Partner
3 0 0

I can't seem to query a bulkoperation but I did succeed with

query {
currentBulkOperation {
id
url
}
}

Thanks for your help

0 Likes