A few weeks ago, I need to change a content type from SharePoint into another one. There are a few alternatives to do either by using a custom solution, Power Automate and/or logic apps. The idea was when an item is created change the content type from x to y.
To achieve this, you have 2 different options:
- When an item is created your Flow runs and it contains a control that either changes the content type or ignore the item created.
- When an item is created you check the content initial content type and your Flow runs if the item is created with a specific content type.
We selected the option number for this case because it will be more efficient for our scenario however both options are fine.
This flow will change the Repost News to our own Content type called Custom News. For that, you can see the flow.
To only trigger once on the Action When an item is created follow the steps:
Under the trigger and conditions, put the following code, if you need to adapt to your own content type just change Repost Page with your content type name.
@equals(triggerBody()?['{ContentType}']?['Name'], 'Repost Page')
[…] Change a SharePoint content type using Power Automate […]
Hi, Thanks for the article. Please can you add a subscription field?