Posts

Showing posts from May, 2020

How to get name of Custom Fields of Project Online/Project Center using REST API?

Image
Get name of Custom Fields of Project Online/Project Center using REST API: function   getCustomFieldInfo ( fieldInfo ){      $ . ajax ({                url      :   _spPageContextInfo . webAbsoluteUrl + '/_api/ProjectServer/CustomFields' ,                type     :   "GET" ,              async    :   false ,                headers :  {                    "accept" :   "application/json;odata=verbose" ,                  ...

How to fetch data from REST API of a SharePoint list using JavaScript Promise/fetch method ?

Image
Fetch the data from a list using JavaScript and create a table Just the the snippet on your SharePoint site page < html   lang = "en" > < head >      < meta   charset = "UTF-8" >      < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >      < title > Table </ title >      < style >          #htmTable  {              width :  100% ;              display :  table ;              border-spacing :  2px ;              border-color :  gray ;        ...