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 / Integrating Flow in Po...
Power Automate
Unanswered

Integrating Flow in PowerApps

(0) ShareShare
ReportReport
Posted on by 364

Hi all, 

 

I have an app that tracks hours spent working on engineering projects. When an engineer submits their hours, my app needs to update a SharePoint site that logs the hours spent on each project. If any Engineer tries to submit hours for a day in the past, we require they get approval. My app currently logs the hours just fine, however I am struggling with getting the flow for an approval working in the app.

 

I have tried creating a flow based on a power app button, but am struggling with the formula to make it run properly. I have tried setting the OnSelect with a Run() formula, but I'm not sure if this is the ideal way to pull it off. I tried making a formula using Run, but I can't seem to get the syntax down. I'll include images, if anyone can help, I would greatly appreciate it!

 

Aurora_0-1632238496577.png

Aurora_0-1632238640201.pngAurora_1-1632238647982.pngAurora_2-1632238652514.png

 

Categories:
I have the same question (0)
  • Aurora Profile Picture
    364 on at

    PowerAppsbutton.Run(DataCardValue24.Text,DataCardValue18.SelectedDate, Dropdown2_1.Selected, Dropdown3_1.Selected, DataCardValue21.Text, DataCardValue22.SelectedItems)

     

    That is the current run formula I have, I'm not sure where the error is coming from. 

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Aurora 

    Does your App save the data to SharePoint even if approval is required?  If so, then why not just have a Flow that runs when the item is created.  The Flow can check the dates and start an approval process if required,.

     

  • Aurora Profile Picture
    364 on at

    How do I set up a flow to automatically check the date and then run an approval? I have fixed the issues with my code for my flow that trigger on a button press, but I am still having some permission errors, so I'm open to other ways of doing this. 

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Aurora 

    See my example below and let me know if you have additional questions.

    image.png

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard