How to retrieve content type id by CustomContentType Name using power automate?
Thanks,

How to retrieve content type id by CustomContentType Name using power automate?
Thanks,
Hi @Shafdev,
You can use the getCompatibleHubContentTypes method (which normally lists all content types) and use a $filter query parameter to filter by name.
Below is an example
URI
_api/v2.0/sites/@{variables('SiteId')}/contentTypes/getCompatibleHubContentTypes?$filter=name eq '@{variables('ContentTypeName')}'&$select=id
Headers
{
"Accept": "application/json;odata=verbose",
"Content-Type": "application/json;odata=verbose"
}