I am using this instruction to upload files to SharePoint document library with using a flow.
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.
Solved! Go to Solution.
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.
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.
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
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.
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.
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?
Check out our new profile badges recognizing authored solutions!
We are excited to announce the Power Apps Super Users!
Did you miss the call? Check out the Power Apps Community Call here.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!