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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Flow intergration with...
Power Apps
Answered

Flow intergration with power apps button

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

So I have been trying to associate a flow with a button on power apps;  employees email out their weekly entries to their respective manager. The thing is that their are several managers that will view and approve on  an individuals weekly timesheet.  So how to integrate a flow with a button, which could include the start and stop dates I want to process, then have the flow do a get items on the list to get all the entries which would be in bulks as I'm trying to gather weekly entries, Then use filters and loops to process the records and send the approvals.

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Based on the needs that you mentioned, I think the combination of PowerApps and Power Automate could achieve your needs.

     

    If you want to pass the start and stop dates from canvas app to your flow, you must define these parameters (which you want to pass from canvas app to flow) within your flow using "Ask in PowerApps" dynamic content of PowerApps trigger button.

     

    Then within your flow, you could use the passed start and stop dates value to filter these items from your data source (e.g. a SP List) through "Filter array" action.

     

    I have made a test on my side, please take a try with the following workaround:

    Flow's configuration as below:

    2.JPG

     

    3.JPG

    Within the "Filter array" action, "From" field set to value dynamic content of the "Get items" action. click "Edit in advanced mode", type the following expression:

    @and(greaterOrEquals(ticks(item()?['Created']), ticks(outputs('StartDate'))), lessOrEquals(ticks(item()?['Created']), ticks(outputs('EndDate'))))

    After that, you could add a "Apply to each" action below the "Filter array" action to loop your following process.

     

    App's configuration:

    4.JPG

    Add above flow connection into your app, then set the OnSelect property of the "Fire Flow" button to following:

    'FlowName'.Run(StartDatePicker.SelectedDate, EndDatePicker.SelectedDate)

     

    More details about firing a flow from a canvas app, please check the following article or video:

    https://www.youtube.com/watch?v=1wl9AtxWdkg

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard