Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Is there a better way to get the internal names of fields?

  Asked By: Nicholas    Date: Aug 29    Category: Sharepoint    Views: 835

I feel like I’ve always done this the hard way and just curious if there’s an easier way others have…

When writing a process that interfaces with a WSS list, via a Web Service, you need to reference the internal name of a field within the SPListItem. Today, the way I get that is either using SharePoint Explorer or by going to the field and getting the name off the URL (last part of the querystring).

Anyone have a better way to obtain the internal name of a field?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Stefanie Ruiz     Answered On: Aug 29

I just have a Web Part that takes a list  name for a list in the current
Web as a property and it then displays all the internal  and display
names for the fields. You can use either name but like you, I always use
the internal name.

You can also see the internal name in the QueryString when you do a sort
on the field  in question.

Wish I could use the internal name when getting an instance of a list.

 
Answer #2    Answered By: Damon Garner     Answered On: Aug 29

now that’s a good idea… a Web Part that gen’s the Excel list  that I usually create for a task like this (one col for the “Display Name”, another for the internal  name). I too prefer the internal name as it feels more static.

 
Answer #3    Answered By: Royce Orr     Answered On: Aug 29

I use a command line tool I wrote that outputs the XML… I also am pretty good at guessing now that I know how internal  names are formed…

 
Didn't find what you were looking for? Find more on Is there a better way to get the internal names of fields? Or get search suggestion and latest updates.




Tagged: