Access item variable in action sheet in custom collection

I’ve got a custom collection with a button that opens an action sheet. How do I use the item variable in the action sheet?

Edit:

I found this post:

Is this related? Do I need {{self.data[i]}} ?

Edit 2:
I’m asking the wrong question. It does work. I can use {{item}}. Perhaps I did something else wrong earlier.

However, I want to run a query and provide the lineItemId to the query. However, I have no idea how to reference it. The following doesn’t seem to work:

Ignore the use of {{item.lineItemId}} here. This is just to check if the variable was accessible in the action sheet. This was my initial question.

How do I reference the item in the query? Or is this only possible with a script, trigger, and additionalscope ?

Hi @Steven_W, item is only accessible from within the collection so we won't be able to reference it on the query.

This is correct, we should set the event handler to 'run script' and pass data using 'additionalScope.'