getting field internal name

The Column Display names on a SharePoint List are different to the Internal Names: e.g. "My Column 1" you will get "My_x0020_Column_x0020_1"

 

https://www.nothingbutsharepoint.com/2009/02/02/getting-the-field-by-the-internal-name-aspx/

From Web UI

You can get the Internal Names from the url when you go and edit individual Columns on a List. Steps would be: 1. Go to List Settings 2. Scroll down on page to Columns section 3. In the list of Columns, click on the column names 4. View the address bar of the browser and look for the querystring part:

5. Then look for the ‘&Field=’

This it the internal field name for ‘Checked Out To’ out of the box column.

From PowerShell on Server

Source: Field Types by Brian Caauwe

3rd Party Tools

U2U CAML Builder

Often you require Internal field names for buidling CAML queries, this tool will help you in this instance.

Imtech Fields Explorer

Imtech Fields Explorer allows you not only to to discover the InternalName of Site and List Columns but also explore all of their properties.

Gotchas with Internal Names

GetDataTable Issue

Source: SharePoint List Column Names by Eric Malamisura If you do a CAML Query and get a DataTable back or you simply call GetDataTable() on one of the Views you will get a DataTable back with the internal names as the column names instead of the friendly names. The below code will resolve this:

External Links

 

posted @ 2017-09-12 15:00  sky20080101  阅读(119)  评论(0)    收藏  举报