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 / Button executing flow ...
Power Apps
Answered

Button executing flow and launch function at same time

(0) ShareShare
ReportReport
Posted on by 75

I have a flow which saves a html text as a file to a library. This flow runs when I press a button. I also need to launch to open that file within the same button. Is there a way to achieve this? So currently I have a flow (SaveFile.run) on a button which saves to documents. I then use Launch(LookUp(Documents, 'Modified By'.DisplayName = User().FullName).'Link to item')

However, I need both of these to run at the same time. I tried adding a refresh button between the flow and the launch command but no luck. Any tips on how to achieve this?

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @PowerAppsHelpCD ,

    You can set a return value named 'ItemLink' for the flow named SaveFile, which returns the link of the item to the canvas app. This way, you can directly obtain the item link and open the file after running the flow.

    launch(SaveFile.run().ItemLink)

    vbofengmsft_0-1710469473537.png

     

    Best Regards,

    Bof

  • PowerAppsHelpCD Profile Picture
    75 on at

    @v-bofeng-msft Thanks for the quick reply. IT worked! Is there a way to make the flow so that if a user presses a button, the previous file that was created under their name gets overwritten. A user should only have one file in the documents library.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard