cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dan47
Helper III
Helper III

Create quick link in navigation

Hi There

 

I would like to create a quick link from an existing library in the left navigation.

 

Cause its for multiple sharepoint sites I figured I'd create a flow. (Its always the same link)

 

Since I didnt find it in the standard sharepoint actions I guess i need to send a http request to sharepoint and write a json script.

How to I write a json script for this action?

 

Many Thanks

8 REPLIES 8
Expiscornovus
Super User II
Super User II

Hi @Dan47,

 

I believe the _api/web/Navigation endpoint still exists, you could use that one:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/determine-sharepoint-rest-service-endpoin...

 

1. Add a Send an HTTP request to SharePoint action, use the POST method

2. Use this as the value for the Uri field

_api/Web/Navigation/QuickLaunch

3. Use the following body 

{ 
 "__metadata": { type: "SP.NavigationNode" }, 
 "IsExternal": true, 
 "Title": "BBC", 
 "Url": "https://bbc.co.uk" 
 }

 

The end result should look similar to the screenshot below

 spnavigationnode.png

Dan47
Helper III
Helper III

Hi @Expiscornovus 

Thank you very much for your fast answer! 🙂

 

I am getting a BadRequest error for my previous copy action so I can't tell you if it worked.

 

Source or Destination likely invalid. Check that the file exists and has an SPListItem ID
clientRequestId: xxxxxxxxx
serviceRequestId: xxxxxxxxx

 

It does this with different Sharepoint sites so the file is not corrupt.

I guess this is just the result of bad performance - what do you think?

Expiscornovus
Super User II
Super User II

Hi @Dan47,

 

I wouldn't assume this is the result of bad performance.

 

What are you copying, a file or a folder? And are you using any content types and or custom columns on your source and/or target locations?

 

Can you share screenshots of the configuration of your flow copy action and the output of the action?

Dan47
Helper III
Helper III

Hi @Expiscornovus 

 

I am copying folders with pictures inside from a document library to a picture library.

 

Dan47_0-1609913362954.png

 

Then there is an action to exclude system folders.

 

Thanks for looking into it.

Expiscornovus
Super User II
Super User II

Hi @Dan47,

 

The copy folder action configuration looks ok. The only question I would have is why you are using a different property in the current site address field compared to your get folder action (project number vs auftragsnummer)?

 

auftragsnummer.png

Dan47
Helper III
Helper III

Hi @Expiscornovus 

 

Thanks for the hint. I corrected it.

 

Dan47_3-1609948913478.png

 

While taking a closer look at the error I saw it copying more system folders I didnt create.

 

Dan47_0-1609948627327.png

 

I can exclude them but it won't work it still gives me the error above.

 

Dan47_1-1609948703126.png

 

Thanks for your help

Expiscornovus
Super User II
Super User II

Hi @Dan47,

 

Can you try and use the Path column instead of Name for your filter? 

pathnotequalto.png

Dan47
Helper III
Helper III

Hi @Expiscornovus 

 

Thanks for your answer.

 

I just changed the Name to Path and let it run. It ended with the same error.

 

Now I wanted to see if the filter array even makes a difference. 

So i ran it with "is equal to" and got the same error.

 

Now I am afraid the filter is useless. Is the another way to filter this folders?

 

Thanks

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,436)