cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rhood
Regular Visitor

Creating a document library and assigning a new content type

Hello

 

I have been searching, however I have not found a direct answer so hopefully someone can help me, even to tell me its not possible. I have a requirement where I need to create documents libraries and add a new content type of email to them.

 

I have the process working via a PowerShell script, though this will not be viable for my users going forward.

 

I can create a document library via the following:

 

rhood_0-1638790554320.png

 

I have also gotten the new content type's ID and was hoping that adding the following would work:

 

"ContentTypeId" : "0x0101004DAFA0A932C94645B584822535763071"

 

rhood_1-1638790649043.png

Now the flow fails.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
CFernandes
Super User
Super User

Hey @rhood ,

 

Can you please,  check the links below -

 

Create a document library - https://www.c-sharpcorner.com/blogs/create-document-library-in-sharepoint-using-power-automate 

 

and then assign the Content Type -

 

Assign Content Type - https://sharepoint.stackexchange.com/questions/273329/managing-content-type-using-rest-api 

 

https://powerusers.microsoft.com/t5/General-Power-Automate/Adding-a-Content-Type-to-a-document-libra... 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

View solution in original post

1 REPLY 1
CFernandes
Super User
Super User

Hey @rhood ,

 

Can you please,  check the links below -

 

Create a document library - https://www.c-sharpcorner.com/blogs/create-document-library-in-sharepoint-using-power-automate 

 

and then assign the Content Type -

 

Assign Content Type - https://sharepoint.stackexchange.com/questions/273329/managing-content-type-using-rest-api 

 

https://powerusers.microsoft.com/t5/General-Power-Automate/Adding-a-Content-Type-to-a-document-libra... 

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,874)