cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Link to SharePoint List item not working in Approval flow

Hi there,

 

I am building an approval flow from the template:

Start an approval for new file to move it to a different folder

The link only opens the folder but not the actual file.

For example if a file is added to the folder the link should directly open the file for the approver.

See below flow:

 

 approval link.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver I
Resolver I

Re: Link to SharePoint List item not working in Approval flow

@Anonymous, Can you try to use "When a file is created or modified (Properties only)" actionSP Doc.PNG

 

SP Doc - Properties.PNG

 

 

I am able to open the file directly instead of the folder using this approach. 

 

 

View solution in original post

5 REPLIES 5
Highlighted

Re: Link to SharePoint List item not working in Approval flow

Hi @Anonymous,

 

Your item link is not valid . File identifier give you part oif a url to the the file. you probably want to use the document property ID there.

 

Easay way to debug. Create a variable to hold the url. Then set the url and run the flow until you are happy that the variable contains the right url. then in the approval action use the variable to set the item link.

Highlighted
Anonymous
Not applicable

Re: Link to SharePoint List item not working in Approval flow

Hi @Pieter_Veenstra,

 

thank you very much for your suggestion. I am completly new to flow and need a bit more guidance I think. For example I expected from flow to have a "Link to file" item presented to me in the dynamic content feature. But all I get are the 6 sharepoint items you can see in the picture. I tried "file path" first but it didn't work.

How would I create a variable in flow and assign the correct url? With the limited selection of dynamic content presented, I hardly see any way to conrstuct the correct file url.

 

Regards

Christian

Highlighted
Anonymous
Not applicable

Re: Link to SharePoint List item not working in Approval flow

I am about to give up one this one....

 

How do I get the file ID? The trigger "When a file is created" does not provide an ID to link directly to the file.

Any suggestions? 

I tried to fill in a "Get items" and "Get properties" action but got stuck as well.

 

This should be a common issue for approval flows. Any other ideas what I can do?

Highlighted
Resolver I
Resolver I

Re: Link to SharePoint List item not working in Approval flow

@Anonymous, Can you try to use "When a file is created or modified (Properties only)" actionSP Doc.PNG

 

SP Doc - Properties.PNG

 

 

I am able to open the file directly instead of the folder using this approach. 

 

 

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Link to SharePoint List item not working in Approval flow

Thank you very much! That actually did the trick.

 

Regards

Christian

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (9,676)