Get Content Type by Name

How to get a Content Type by filtering on the name in a SharePoint Online Content Type Gallery using the Graph API in a Power Automate flow.

URI

Headers

Body

Not applicable

Screenshot with example

Sample data
SiteId – contoso.sharepoint.com,9b5b287b-b65d-4a49-b663-672a6643104e,31290b46-1ffd-4fee-b16b-db271d10e184 (Content Type Hub site)
ContentTypeName – IT FAQ

getcontenttypebynameblog

Expected response

An array in the value property will be returned with properties like id, group, etc.

Copy/paste example

Copy and paste the below code via the My Clipboard option in Power Automate.

Resources

contentType: getCompatibleHubContentTypes

That’s it, Happy testing!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.