Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getTasks() {
- return $http({
- method: 'Get',
- url: _spPageContextInfo.webServerRelativeUrl + "/_api/SP.AppContextSite(@target)/web/lists/getByTitle('TasksList')/items?$select=*,ProjectTitle/Title,ProjectTitle/Id,ResponsiblePersons/Id,ResponsiblePersons/Title,Attachments,AttachmentFiles,TaskRequestor/Id,TaskRequestor/Title&$expand=ProjectTitle,ResponsiblePersons,AttachmentFiles,TaskRequestor&$top=9999&@target='" + spContext.hostWebUrl + "'",
- headers: {
- 'Accept': 'application/json;odata=verbose',
- }
- });
- }
Add Comment
Please, Sign In to add comment