Hi all,
I have developed a Shopify App about updating product descriptions. My app works fine as an embedded app and i’m trying to extend my apps functionality by adding an admin action on admin panel → products page.
So i’ve started using Shopify CLI (vanilla js) and successfully inserted my admin action button here:
Now i need to get the product ids of the selected products as you see in the image above.
As a simple example here is my code (ActionExtension.js):document is not defined
Since all product selection checkboxes are classed with .Polaris-Checkbox__Input and language is js not react, so i thought i can get the ids with document.querySelectorAll() and chain an event when a checkbox is checked or unchecked. But i get document is not defined error on console.
Is there a way to get selected product ids when the admin action clicked on products page?
Thanks.

