Hot answers tagged

27

The dumbed down answer (Anders and Jaap are smarter than I am) is this: When you create a column on a list, both its DisplayName and StaticName are set to the same value. However, the StaticName contains converted values for some characters, most notably a space ' ' is converted to '_x0020_'. So if the DisplayName is 'Product Description', then the ...


6

You can use SharePoint Manager to inspect properties of existing fields, including the InternalName


4

Because SharePoint convert special characters in the internal name. _x0040_ = @ - More about mappings for non-alphabetic characters So that means when that column was created, its title was @Active.


3

If you mean list template ID's you can find them here: http://msdn.microsoft.com/en-us/library/dd586520(office.11).aspx Also theres the FieldId and PropertyConstant classes: FieldId defines constants that you should use to reference SharePoint fields. PropertyConstants is the same deal, but for UserProfile fields. Theres also lots of enumerations that ...


2

Looks like there is no such Public documentation available or i have seen it. You are correct and I test it and my results are same as yours...List filed name turncated to 32 characters but Document library having bigger limit. I tested code from this Blog post. 32 Character Limit Of SharePoint List's Internal Field Name using System; using System....


2

I have a SP2013 OnPrem running and its showing Field=Status I just checked with powershell, its like this: StaticName Title InternalName ---------- ----- ------------ Status Task Status Status


2

I added the following snippet: <td class="ms-formbody"> <SharePoint:FormField runat="server" ID="field_name" controlMode="Edit" FieldName="Name" /> </td> I don't know why but the FieldName attribute should be the exact displayed name (and NOT the internal name) of the column we want to display.


2

Not exactly sure as to the why but I was able to duplicate your issue. A similar thing happens when you name a Field names with special characters. "For e.g. trying to create field Emp Name gives internal name as Emp_x0020_Name." Whatever the reason, it appears to be deliberate and possibly a security measure. Field Name Internal Name AA AA A5 ...


1

Here is where the confusion comes from: [in List settings ContentTypes:] In the (List) Task ContentType the "Task Status" internal name is Status [select the source ContentType Task:] In the (Site) Task ContentType the "Task Status" internal name is TaskStatus Same internal field renaming (but why?) with: DueDate (List ContentType) => TaskDueDate (...


1

You seem to have a chicken and egg problem. If you are trying to access a field via its name, but don't know what the name is, you need to somehow determine its name. You might try iterating the fields on the list item until you get the one you're looking for, but the question remains, how do you know which is the right one? (That approach will also have ...


1

I use the following function to add an index Function AddIndex () { Param ($list,$InternalFldName) try { Write-Host "Updating index for list: $list"; $fldToIndex =$list.Fields.GetFieldByInternalName($InternalFldName); try { ...



Only top voted, non community-wiki answers of a minimum length are eligible