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

Creation of Content Types vai REST API or GRAPH

Hi,
Im trying to create content type and assign custom site columns / fields to it via REST API in SharePoint Online. The HTTP action works partially as all new CT are create with PARENT CT item... I dont know how to pass the Parent info in the call... Could you please help with that? The next step is to assign some fields/site columns to created Content Type dont know how to deal with that to... If there is a better way to do it via MS Graph Im more than happy to try it.
Know how to do it with CSOM or PnP PS but would like to achive that with Flow that is why thinking to use REST or GRAPH
Till now I tried to use _api/web/contenttypes and
{
'__metadata': {'type': 'SP.ContentType'},
'Description': 'TestDesc2',
'Name': 'ContentType New7',
'Group': '_GroupCustom',
'Parent': {'__metadata': { 'type': 'SP.ContentType' },
'Id':{'__metadata': { 'type': 'SP.ContentTypeId' },
'StringValue':'0x0101'
}
}
}
Thanks
Dawid

3 REPLIES 3
RookieI
Level: Powered On

Re: Creation of Content Types vai REST API or GRAPH

DawidZio
Level: Powered On

Re: Creation of Content Types vai REST API or GRAPH

Hi,
Thank you for replying but Im not sure how it should help with my question.

I posted also query in the techcommunity as made my investigation and did not find the answer in the internet... 
That is why I open new topic here.
Regards

Super User
Super User

Re: Creation of Content Types vai REST API or GRAPH

Hi!

 

You can use PnP templates in Microsoft Flow to provision content types.

 

This article doesn't describe how to provision content types, but it explains how to work with PnP templates from Microsoft Flow. 

 

You can find description of content type declaration in the PnP Provisioning Schema.

 

Note, this is provided as an action in the Plumsail SP connector, which is a part of Plumsail Actions product. It is a paid product.

 

Best regards, 

Anton Khritonenkov

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: 219 members 5,157 guests
Please welcome our newest community members: