cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jaison11
Frequent Visitor

Updating metadata for a folder dynamically using Send an HTTP request

Hello,  

 

I can not seem to update metadata for a subfolder dynamically. Example - /Documents/TeamName/Subfolder

 

Process:

I am using Power Automate to create new Channels in a Team and then the flow creates a standard set of subfolders. The flow is then supposed to update a column of data "FiscalYearEnd" on each folder.  This happens in a loop.  I can not get the dynamic content of "Folder Path" to update the metadata because the function is in a loop.

 

I have tried multiple variations of the folder path.  I even took out the "Get Folder metadata using path" function and tried to use dynamic content in the Send an HTTP function, but nothing seems to find the subfolder successfully.  

 

Here are the steps (in an apply to each loop)

 

Jaison11_0-1632234732583.png

 

 

Jaison11_1-1632234732572.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jaison11
Frequent Visitor

**SOLUTION**

 

I was able to create folders and update column metadata successfully using the below configuration of the "Send an HTTP request to SharePoint" action.

 

Jaison11_1-1632246136924.png

 

View solution in original post

2 REPLIES 2
Jaison11
Frequent Visitor

UPDATE: 

I have since got closer. I removed the "Get Folder Metadata using Path" function and  I changed the Uri to get the Folder and list all the fields to update the field value.  It doesn't error out now, but it runs forever.  

 

Jaison11_1-1632241383097.png

 

It creates the folder successfully but does not enter the value being passed in to the column.  

 

Jaison11_2-1632241593341.png

 

Jaison11
Frequent Visitor

**SOLUTION**

 

I was able to create folders and update column metadata successfully using the below configuration of the "Send an HTTP request to SharePoint" action.

 

Jaison11_1-1632246136924.png

 

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (1,509)