Hi,
I have a button in {owerapps that successfully creates a PDF, saves it to the SharePoint Documents folder, and attaches it to an email in Power Automate.
PowerApps

Power Automate

I would also like to send some additonal parameters from Powerapps such as names and email addresses to be used in the email.
I want to use the globalSelectedItemId to LookUp a different SharePoint List : Incidentdatabase2024 and match it to the IncidentN column.
Based on this I would like it to pass the relevant info to PowerAutomate.
To do this, do I need to change the PowerApps trigger to include text?

Do I need a different input for each item of text. For example, if I am wanting to get the Stafffirst, Stafflast, Staffemail, Housecompemail and 'Created By' (the email and name?)
I am not sure if I should create variables for each in PowerApps:

I tried this and then addign to the run, but it creates an error.
SPDFTSP.Run({file:{name: globalSelectedItemId & ".pdf",contentBytes:PDF(Gallery4, {ExpandContainers:true, Size: PaperSize.A4})}},
staffFirst,staffLast, staffEmail, houseCompEmail, createdBy
)
Would I be better to send the globalSelectedItemId to the Power Automate and have it get the items from the Incidentdatabase2024??
I'm out of my depth 😖
Any assistance would be greatly appreciated.😊