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

Introduction

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:

Code

This is the code to get all the field information:

 

Author: José Quinto
Link: https://blog.josequinto.com/2015/12/08/retrieve-static-and-internal-field-names-of-a-sharepoint-list-using-javascript-in-office-365/
Copyright Notice: All articles in this blog are licensed under CC BY-SA 4.0 unless stating additionally.