Change a SharePoint content type using Power Automate

David RamalhoMicrosoft 3653 years ago30 Views

Photo by Javier Allegue Barros on Unsplash

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:

  1. When an item is created your Flow runs and it contains a control that either changes the content type or ignore the item created.
  2. 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')

The post Change a SharePoint content type using Power Automate appeared first on SharePoint Tricks.

Original Post https://sharepoint-tricks.com/change-a-content-type-using-powerautomate/

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
March 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       
« Feb   Apr »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...