web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to pass additional...
Power Automate
Answered

How to pass additional parameters from PowerApps to Power Automate through the Run function

(0) ShareShare
ReportReport
Posted on by 238

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

Newbie2019_0-1704873223676.png

Power Automate

Newbie2019_1-1704873545854.png

 


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?

Newbie2019_2-1704873659234.png

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:

Newbie2019_3-1704873938826.png

 

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.😊

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @Newbie2019 

     

    If you just pass the item ID from power apps to power automate flow then you wouldn't need to add new parameters if in future some changes is required in email template. You could just pass the ID and then withing power automate just add the "Get item" action pass the ID to get the whole item. From dynamic content window, you could easily choose the column's value required for email or any other operation.

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Newbie2019 Profile Picture
    238 on at

    Hi @ManishSolanki 
    Thank you for your reply. Is there a way to include the passing of the ID in the Run function? As the email address will be dependent on globalSelectedItemId (This is a number I have created for each entry that makes it easier for staff to track. For example 353163418  Day of the year (Out of 365) and time hhmmss).
    Do i get the ID for example:  LookUp(Incidentdatabase2024, IncidentN = globalSelectedItemID, ID) and then store this in a variable (let's say varID). Then include this in the run?
    SPDFTSP.Run({file:{name: globalSelectedItemId & ".pdf",contentBytes:PDF(Gallery4, {ExpandContainers:true, Size: PaperSize.A4})}}, varID)
     I am not sure if that would even work.
    Sorry for all of the questions.
    Thanks

  • Verified answer
    Eider Profile Picture
    71 on at

    Podrías pasar la información desde Power Apps de esta manera: 

    Eider_0-1704895414576.png

    Y configurar asi el flujo de Power Automate: 

    Eider_1-1704895518140.png

    De esta manera te aparecerán los campos adicionales.

  • Newbie2019 Profile Picture
    238 on at

    Hi @Eider ,
    Thank you for your response and helping me navigate using PowerApps trigger inputs in Power Automate.
    It has solved my problem 😀.

     

    Thanks again.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard