cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Dudditz
Level 8

Send HTTP Request to SharePoint for multiple content types

Within my flow I use the Send http Request to do the following.  Update list items of a document set and sub folders within the document set all created upstream within the flow.  So far everything is working great and this is done in a single apply to each step as seen in the image.  I have a requirement where one of the Sharepoint columns named Folder Type will have a different value based upon if its a document set or folder content type.

Required Values:

Document Set = Project-DS

Folder = Project-Folder

The reason for this is within our ERP Dynamics Finance and Operations we use an embedded powerapp that filters on this column to show relevant Document set and subfolders.  Powerapps has delegation issues when filtering on the native content type column so the way around this is to filter on a simple text column.  I realize I can achieve my requirements by simply adding a condition action with powerapps and duplicating the Send http request action, etc. however I was wondering if its possible to do this with the existing Send HTTP request action by adding some additional code to the body, etc. that would update this Folder Type column based upon which content type is applied, example Document Set or Folder.  I guess this would be using rest at this point.

 

The following action is currently updating both the Parent Document set and Sub Folders.  I have not added the Folder Type Sharepoint Column yet as I am still researching if this is possible to do within this action.

content-type.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Dudditz
Level 8

Re: Send HTTP Request to SharePoint for multiple content types

Took a different approach and just did not append the doc set ID into the folder variable, created a 2nd send http request to specifically update the Doc set so they are seperated.

View solution in original post

1 REPLY 1
Dudditz
Level 8

Re: Send HTTP Request to SharePoint for multiple content types

Took a different approach and just did not append the doc set ID into the folder variable, created a 2nd send http request to specifically update the Doc set so they are seperated.

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,048)