I am writing a JS query that will return markdown for a PDF I need to create. Part of it involves triggering an existing query with a parameter and I'm using Additional Scope. I need to save the new query data after it's been triggered by can't for the life of me get it right. Here's what I have:
const data = Line_Items_For_PDF.trigger({additionalScope: {ticket_id: ticketId,}});
I also had a difficult time getting additionalScope working. Another option is to save the parameters in Temporary State variables and then reference those variables in you query.