Skip to content
1 min read

SharePoint Fields: Name, StaticName and DisplayName

Recently I had been working on a SharePoint provider-hosted app which required me to create an abundance of SharePoint site columns and content types. As I was building them out I realized so many attributes that a developer has access to. When building columns in Visual Studio, you have much more control and flexibilty when editing properties of the SharePoint column. Below is an example of a Multi-lookup site column called ResidentAsset. A few of those attributes look very similar don't they? Name, DisplayName, StaticName. You  may ask what the difference between these attributes are.

ElementXML

 

DisplayName: the name that is shown to a user. It can contain any assortment of special characters and or letters.

Name: a read-only field that is derived from the DisplayName field. It is a unique field which cannot be changed. It is used at the unique identifer for this column in the list. In the event you have multiple Name fields with the same value, SharePoint will automatically add numbers to the ending.

StaticName: much like the Name field it is derived from the DisplayName field however isn't read only. You may use StaticName to get or set the Name field. 

Share
  
DON'T MISS!

Expert Insights from the Aerie Team

Drop us a line

Our team will be happy to answer your questions.

ADDRESS: 110 West Canal Street, Suite 201
Winooski, VT 05404

PHONE
: (813) 358-4656
HOURS: 8:00 am - 5:00 pm EST Monday to Friday
EMAIL: chanson@aerieconsulting.com