cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oggiejnr
Level: Powered On

Using a Flow to create folders and retention labels in SharePoint Online Document Library

Have been creating a Flow to create folders in SharePoint Online using the Send a HTTP request to SharePoint.

e.g. Flow starts with Input Employee Name.

Flow Employee Name.PNG

 

 

 

 

 

Declares a path to create the folders in.

relativepath.PNG

Creates the folder using Send http request to create a folder.
Sendhttp1.PNG

 

 

 

 

 

 

 

 

 

 

 

All the above works fine.

 

Then I'm trying to see if I can use the Send http request to SharePoint to set the Retention Label.

#Note -this is not a sharepoint classic retention label but the one that comes from the Compliance center labels.

sendhttpretention.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

So the flow doesn't error. But the retention label is not set. 

Is this actually possible?

Am I using the correct uri API?

Does the body look correct?

 

Any help would be greatly appreciated.

Thanks

 

 

3 REPLIES 3
Anonymous
Not applicable

Re: Using a Flow to create folders and retention labels in SharePoint Online Document Library

Hello, @oggiejnr 

 

I think the cause is because it is enclosed in single quotes.

I use double quotes.

In Json, 

The sample HTTP is as follows:

HTTPRequestDoublequote.png

 

Reference URL:https://stackoverflow.com/questions/36038454/parsing-string-as-json-with-single-quotes

v-lin-msft
Level 10

Re: Using a Flow to create folders and retention labels in SharePoint Online Document Library

Hello @oggiejnr,

 

Have you solved your problem? If you haven't solved your problem, you can post your problem and we can continue to help you solve it.

 

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

oggiejnr
Level: Powered On

Re: Using a Flow to create folders and retention labels in SharePoint Online Document Library

Attempted to swap the single quotes for double sorry no changes.

 

Capture.PNG

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

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!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

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: 38 members 4,468 guests
Recent signins:
Please welcome our newest community members: