SharePoint has it’s own Contact list with its own content type, Contact. But what if you want to customize this list. What should you do?contacts

A couple of common customization that you might want are:

  • Additional fields
  • Remove some of the out of the box fields.
  • Reorder the fields.

Easy isn’t it you go to the list and you add, hide, remove and reorder columns. Hmm, this could become painful at a later stage. As my followers will know I frequently use the PnP provisioning engine to copy templates sites. Changes made to the content types on the list are not supported. It isn’t best practice to make changes to list content types anyway. Imagines having multiple contact lists with each list having it’s own customization. I’m not saying that it isn’t maintainable but it is at least going to be confusing.

So what should I do?

I could take the site content type, Contact, and change that content type. But I don’t really like changing out of the box content types or anything out of the box as I might break something that depends on this content type.

If I just want to add fields then I could create a new content type that inherits from the Contact content type.

However if I want to get rid of fields, then I might want to be a bit more careful and potentially just hide the fields.hide

Quite quickly however I might end up with something that is very different from the original Contact content type.

Maybe inheriting from the Item content type and adding all the fields that I want could be a cleaner way of approaching this. That will give me the flexibility to configure exactly those fields that I want within my list and I will find less issues on my way when I use PnP

 


Discover more from SharePains

Subscribe to get the latest posts sent to your email.

Avatar of Pieter Veenstra

Is your business still running on paper trails, sprawling Excel files, or ageing Access databases? There's a better way — and I can show you exactly what it looks like. I'm the Technical Director of Vantage 365, a Microsoft solutions consultancy working with clients across the UK, the Netherlands, and worldwide. For over 30 years I've been turning messy, manual business processes into clean, automated systems that save time, reduce errors, and give teams the visibility they need to make better decisions. SharePains is not just any blog run by a Microsoft MVP. Have you ever used Try-Catch in Power Automate? The original post about Try-Catch in Power Automate can still be found on this site, https://sharepains.com/2018/02/07/try-catch-finally-in-power-automate-flow/ Or have you ever used the Pieter’s method to avoid variables and speed up your flows? https://sharepains.com/2020/03/11/pieters-method-for-advanced-in-flows/ You can contact me using contact@sharepains.com

Related Posts

Leave a Reply

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

Discover more from SharePains

Subscribe now to keep reading and get access to the full archive.

Continue reading