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
DevendraV
Level 8

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
Super User
Super User

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.

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

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?

DevendraV
Level 8

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

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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 69 members 3,526 guests
Please welcome our newest community members: