web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add content types to d...
Power Automate
Answered

Add content types to document library

(0) ShareShare
ReportReport
Posted on by 2,563

Hi

 

Im creating a flow that creates new Document Librarys in different placed based on the Title in a form.

I would like to make the flow add Content types that i select to the different librarys.

 

In the content hub i have created 3 Content types, Contentype 1 and so on.
The flow generates a new Docemnt library but how can i add the Contenttype1 to the library in the flow?
Im using a Send Http request for creating the document library.

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Hi @JimmyWork 

    there are few solutions that could help you:

     

    - In one hand you have the custom connectors from Plumsail SP, they have multiple actions to modify, add and manage content types and document libraries. Idk exaclty for what you need it, but it will make your life easier for sure. Take a look.

    - If, on the other hand, would you like to do it by your own, honestly I have never did it using Flow, but Powershell. Take a look to the following REST options (using Sharepoint HTTP Rest call action), for sure is the unique alternative you have and you can even create your custom Flow connector:

    Hope it helps 🙂

     

    Regards

  • JimmyW Profile Picture
    2,563 on at

    Thank you i will try to work out with the info you supplied 🙂

  • gmparky Profile Picture
    6 on at

     

    I got this working 

     

    gmparky_0-1603884955070.png

     

    This site is a god send 😁

     

    http://www.ludovicperrichon.com/sharepoint-rest-api-call-with-powerautomate/#addcontenttypestolist

  • dannirodrigues Profile Picture
    39 on at

    @gmparky  I tried to do same, but didn't worked 😞 

     

    dannirodrigues_0-1687440469999.png

     

    dannirodrigues_1-1687440550659.png

     

     

  • gmparky Profile Picture
    6 on at

    I understand that Microsoft has changed how Content Types are made available to site. Previously they where pushed to all sites. Now you have to pull them to the site. Because of this I had to go with a site script because of this change. The other way is via PnP PowerShell. 

     

    https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/get-started-create-site-design

  • nazho Profile Picture
    2 on at

    thanks thanks thanks!!! it worked. i was looking hardly for this and i didnt found nothing in the documentation.

     

    im happy now

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard