Sp.Sites.Lists.Fields.getAllFields
GET/clients/:clientId/sp/sites/:siteId/lists/:listId/fields
This static function retrieves all fields of a SharePoint list using the provided SharePoint client and list ID.
Request
Responses
- 200
The getAllFields
function is returning a Promise that resolves to an array of
Sp.Field
objects. The function retrieves the fields of a SharePoint list using the
openSpClient
object and the listId
string provided as parameters.