Get exported orders ids from Bulk action link in embedded app

Solved
Highlighted
New Member
2 0 0

New to Shopify apps. Wondering how to collect the exported orders IDs from a bulk action link that is sent to my embedded app (created following Shopify's Node, React and GraphQL tutorial).  Thanks

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1041 140 165

This is an accepted solution.

They're appended as URL parameters, for example:

 

https://some-app.com?shop=...&ids[]=1234&ids[]=1235

To read these in your Koa app, look inside ctx.query:

 

router.post('/example', (ctx) => {
  console.log(ctx.query)
})
0 Likes
Highlighted
New Member
2 0 0

thanks!

0 Likes