Retrieve Static and Internal Field Names of a SharePoint List using JavaScript in Office 365


There are scenarios where we need to show and compare Internal and Static field names of a SharePoint list.

For instance, if we want to do CAML query over some custom fields, but we don’t remember exactly the Internal Name of the field, we can use this code directly copied and pasted in the browser console to get all the names.

JavaScript Object Model reference

Using JSOM or JavaScript Object Model, It is important the difference between get all fields directly from a list and get all view fields from a view.

A little more information about the Object Model:


This is the code to get all the field information:


Author: José Quinto
Copyright Notice: All articles in this blog are licensed under CC BY-SA 4.0 unless stating additionally.