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 Apps / Upload file to SharePo...
Power Apps
Answered

Upload file to SharePoint from PowerApp and send email with link to this file

(0) ShareShare
ReportReport
Posted on by 404

Hello.

I am using this instruction to upload files to SharePoint document library with using a flow.

 

https://www.youtube.com/watch?v=5XsWgVnR7SU 

 

And I need to send a link to this file, which I have just uploaded.
I am trying to use Last(Contracts).'Link to item' in email body, but it works time to time, and sometimes it is not last file from my library.
I need to send a link to a file which I have just uploaded.

Categories:
I have the same question (0)
  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    Hi @ppl ,

     

    in the flow after the "create file" action you could add a Send Mail action. Note sure what you get as a response from "create file" but if there is no URL to the file you probably need to add an action "get file properties" and use the ID from the "create file" response to receive the properties. This action will contain a URL to the document in the response. 

  • ppl Profile Picture
    404 on at

    @PowerRanger 

    I need to get this link on the next screen in my app after uploading, not in flow, because I need to enter email of the person who must get this link.

  • Verified answer
    PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @ppl 

     

    Use "respond to powerapps" action in your flow and pass the URL back to powerapps.

     

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @ppl 

     

    As mentioned before you need to add a action "respond to powerapps or flow".  Add a Text Output and name it "urlNewFile" and use the Path responce from the create file action.

     

    In PowerApps you need to call your flow like this

    Set(myResponse,power.Run().urlNewFile)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • ppl Profile Picture
    404 on at

    SharedScreenshot.jpg

    If I am trying to use respond to powerapps there is an error

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @ppl 

     

    You can't place a respond to powerapps action in a ForEach Loop. In this case you need to create an aaray variable before the ForEach action. Within the ForEach you need to add the response from create  file to the array.

     

    After the ForEach Loop you add a respond action and pass the array back to powerapps.

  • ppl Profile Picture
    404 on at

    @PowerRanger 

    What action you mean response from create  file to the array? I made like this and see the same error.

    And what value I need to put in Respond To Powerapp value?Screenshot 2020-10-26 171823.png

  • JustITGuy Profile Picture
    12 on at

    Hi 

     

    Do you know how i can get the URL to show on Powerapps, if i have it set on the Flow, my mind is throwing banks and i can't figure out how i can get the url to show on a text input?

     

    Thanks In Advance

    JustITGuy

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard