2022 Developer Survey is open! Take survey.

Questions tagged [odata]

OData is a standardized protocol for creating and consuming data APIs. OData builds on core protocols like HTTP and commonly accepted methodologies like REST. The result is a uniform way to expose full-featured data APIs.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

SSIS import list not working, XML not showing up in chrome

I'm no sharepoint master user so i'm hoping you experts can help/guide me through this... My company have a sharepoint site that we use for quality surveys, but now we need to import it into our SQL ...
user avatar
0 votes
1 answer
46 views

How to send a CAML Query with curl?

I've been using a CAML Query for getting all files in a document library in SharePoint 2013. I used PnP with PowerShell for this purpose, but as I would like to get all files on Linux. I think it's ...
user avatar
  • 103
0 votes
2 answers
13 views

How to determine if a RoleDefinition grants read access or not?

I have the role definitions like this: https://YOUR_TENANT.sharepoint.com/sites/YOUR_SITE/_api/web/roledefinitions So this will return something like: {_ObjectType_=SP.RoleDefinition, _ObjectIdentity_=...
user avatar
0 votes
0 answers
23 views

ODATA Filter for lists/libraries using TemplateFeatureId guid property

24Hrs into learning about OData queries for a SP project that was dumped on me. I can get the data i need from _api/web/lists?$select=Title,TemplateFeatureId,Author&$expand=Author But I tried to ...
user avatar
0 votes
0 answers
13 views

Sharepoint 2016 Tasks List Extract to Excel with OData - Missing "assigned to" Columns

I'm new at this. I'm working with Sharepoint and Excel 2016. I'm extracting a tasks list and a schedule from Sharepoint by making a OData Data Feed connection. the link of the connection has this ...
user avatar
0 votes
1 answer
293 views

How to send email notification for list items that have expired or will expire in the next 30 days using OData Filter Query?

This started as a question, but I figured out the answer as I went, so just posting for reference. Desired Behaviour Use the OData Filter Query field in the SharePoint Get Items action in Power ...
user avatar
0 votes
0 answers
45 views

Getting access denied when using this graph api "https://graph.microsoft.com/v1.0/me/insights/used"

Not sure if someone can guide me here. I can use all other endpoints apart from this one "https://graph.microsoft.com/v1.0/me/insights/used" The doco here I have tried everything and i'm 100%...
user avatar
  • 4,090
0 votes
1 answer
148 views

What query to use ti get recent files from a particular document library - Graph Api

I'm wondering if anyone has had to do a similar thing to be able to get all recent files from a particular site collection of sharepoint library To get lists used i know i can use this - https://graph....
user avatar
  • 4,090
1 vote
0 answers
66 views

OData query to get a field values by column position in the list

So I want an OData query that allows me to get the field and its values by position in the viewable list. In the above picture, for example, I want the values in the "Title" column but that ...
user avatar
1 vote
0 answers
156 views

Project Online OData Source - SSIS

I have an MS project online environment and I want to replicate all data from online to our SQL servers. I found this article to do this with VS2012. I'm using VS2019 and SSDT, SSIS, SSAS extensions, ...
user avatar
  • 1,737
0 votes
1 answer
272 views

How do I access Sharepoint list data from a custom spfx webpart?

I'm trying to get all list items from a list on the same domain as the client-side spfx web-part. It's a pretty basic call via the REST API, however the information being returned doesn't match that ...
user avatar
0 votes
0 answers
265 views

SharePoint REST API - odata $expand is not working on a specific site

I am using SharePoint API to get list items. One of the fields is User Picker. The query looks like this: /_api/web/lists/getByTitle('Actions')/items?$select=AssignedTo/Id,AssignedTo/UserName&$...
user avatar
  • 66
0 votes
1 answer
153 views

Get country from people and groups field using rest API

I was able to get details from people and groups using rest api and with the help of the below link. https://ajaznusrat.wordpress.com/2012/06/21/using-the-sharepoint-user-type-field-people-or-group-in-...
user avatar
  • 1,453
0 votes
1 answer
89 views

Sharepoint REST API - Filter by Negative Number

I'm trying to filter by a negative number but it only seems to work with zero or positive. Does anyone know how to fix this? My query is below: spUrl + '/SitePages/checklist.aspx?filter=ChecklistID/...
user avatar
1 vote
1 answer
537 views

OData Query for Azure Data Factory SPO List Connector Doesn't Return Expected Results

I am trying to run an OData query via a SharePoint Online List connector in Azure Data Factory, here is my query: $select=Id, ProjectId, Project/Id, Project/Title&$expand=Project "Project&...
user avatar
  • 111
0 votes
1 answer
94 views

Excel import OData feed URL from SharePoint 2016 get 401 error

I want to establish an OData datafeed in Excel 2013 to connect to a SharePoint 2016 list. In the Excel, data tab -> from other source -> from OData datafeed. Then I input our SP2016 url: https://...
user avatar
  • 4,016
0 votes
0 answers
537 views

Unable to select nested array in JSON object with Microsoft Graph

Given the following Graph call response of https://graph.microsoft.com/beta/sites/root:/sites/[siteTitle]:/lists/[listId]/Columns, how can I only return/select down to the array "choices" ...
user avatar
0 votes
1 answer
126 views

Unable to retrieve data from multi-select “Choice” SharePoint control using listdata.svc

I'm able to connect to a SharePoint 2019 list using the listdata.svc service. Problem is, if the control for a column is of the "Choice" variety, with multiple selections allowed, the data stored in ...
user avatar
4 votes
2 answers
247 views

How to get details of editor of SharePoint site file?

I am working on SharePoint notifications using webhooks. I tried the following POST request. https://xxxxx.sharepoint.com/_api/SP.AppContextSite(@target)/web/lists('2c955ea0-28h4-4f84-a8b5-...
user avatar
0 votes
0 answers
62 views

Identify Parent Tasks

I'm retrieving Tasks associated with a Project via the OData query. https://XXX.sharepoint.com/sites/pwa/_api/ProjectServer/Projects?$filter=Id eq guid'xxxx'&$select=Id,Name,StartDate&$expand=...
user avatar
  • 123
2 votes
1 answer
3k views

Multiple $filter in OData query

Here is my OData query: https://XXX.sharepoint.com/sites/pwa/_api/ProjectServer/Projects?$filter=Id eq guid'xxxx'&$select=Id,Name,StartDate&$expand=Tasks&$select=Tasks/Id,Tasks/Name I ...
user avatar
  • 123
2 votes
1 answer
277 views

How to order by modified (desc) and remove duplicate results in SPO List Datatable

Below is a working datatable for my SPO list called Companies. There are some duplicates in this list, but I want all of the duplicates removed. I have attempted the solutions on the DT site, but ...
user avatar
0 votes
1 answer
33 views

Sharepoint Foundation REST interface, updating an object fails

I'm using the REST interface detailed here -https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ff521587(v%3Doffice.14) As a proof of concept, I'm trying to access an ...
user avatar
  • 101
1 vote
1 answer
282 views

Change Sharepoint task parent id via REST

I'm trying to move a subtask from one parent to another. I could change the tasks name with such a PATCH query: PATCH /sites/PWA/_api/ProjectServer/Projects('4b951130-e0b9-e911-910f-001dd8b71c8d')/...
user avatar
2 votes
0 answers
63 views

Odata query returns 401

I'm working with the SharePoint 2016 OnPremis OData Rest Api. The filter parameter is defined followings: $filter=Art/Value eq 'aString' and year(Received) eq 2019 Art is a choice value and Received ...
user avatar
  • 1,176
0 votes
1 answer
304 views

PWA Workflow gets Access Denied for API Call to get Assignments

I have a SPD 2013 Workflow on our PWA site that has been working fine for 6 months. My colleague has left the business and Admin have disabled his 365 account. Suddenly, the Workflow is failing and ...
user avatar
0 votes
1 answer
944 views

Reading Sharepoint List in SPFx - ForEach not working

I have no idea how to read Sharepoint List Data in SPFx one by one. JavaSript console returns me an error: Uncaught (in promise) TypeError: item.forEach is not a function. private ReadAllCountries(...
user avatar
2 votes
1 answer
1k views

Is there a limit of conditions count for oData query using $filter?

I have a long $filter query like ID eq 1 or ID eq 2 or ID eq 33 or ID eq ... and it works like a charm when we have up to 159 conditions joined by or. But, when I add one more condition (started from ...
user avatar
  • 23
0 votes
1 answer
413 views

ODATA: Unable to expand Attachments from SharepointOnline

My objective is to use SSIS with an ODATA source to connect to a Sharepoint Online list. My aim is to extract the ServerRelativeUrl for the attachments of all items within the list. I'm as yet unable ...
user avatar
1 vote
0 answers
120 views

Replacing the SSIS SharePoint List Source

Hi I've been trying at this now for a day or so but it's proving really difficult. I've got a basic SSIS package which essentially queries some SharePoint lists (lists with files) and drags out the ...
user avatar
0 votes
1 answer
66 views

sharepoint rest api sitecollections

I use the following API https://.sharepoint.com/_api/search/query?querytext='(contentclass=STS_Site)'&rowlimit=500 for getting the site collection, but it seems to miss site collections. for ...
user avatar
1 vote
1 answer
3k views

Sharepoint 2013 REST API GetFolderByServerRelativeUrl will not return the Author details

I looked over other answers that was having the same problem, but those answers don't seem to resolve this problem. How can I get the request to include the Author name? Although, this request returns ...
user avatar
0 votes
2 answers
882 views

CAML Query vs Odata Query string operators

For getting SharePoint list values through rest. I came through two solutions writing CAML Query in the body of AJAX call Odata query selector operators(eq: select,expand) in the url ...
user avatar
0 votes
1 answer
49 views

When calling SharePoint REST OData api, what is the biggest value allowed by $top?

I am making calls to get all sub-sites of a site collection using: ${siteCollectionUrl}/_api/site/rootWeb/webinfos But there are 1000's of them. So I need to get them in pages using the $top and $...
user avatar
0 votes
2 answers
516 views

Downloading data from over 90 SharePoint Team sub-sites

I`m working on a reporting project that mainly uses data sourced from 6 different lists replicated on over 90 SharePoint Online sub-sites handled by a global team in my organization. These sites are ...
user avatar
0 votes
1 answer
5k views

System.UnauthorizedAccessException Access Denied REST

Wondering if anyone can help me please, I have some REST code getting all the webs for a site collection, this looks like below: url = _spPageContextInfo.webAbsoluteUrl + "/_api/web/webs?$select=...
user avatar
1 vote
0 answers
95 views

Get filtered projects list by applying filters on its fields SharePoint Online CSOM

How to get filtered projects list by applying filters on its fields SharePoint Online CSOM.(by using OData or something?) can it be possible using OData?
user avatar
  • 323
1 vote
0 answers
103 views

Accessing SharePoint online data in SQL server using Odata feed

I tried accessing data from SharePoint's project web app using admin account(with full control) in excel using Odata feed. I was successful. But when I tried to replicate the same thing with Sql ...
user avatar
  • 2,356
0 votes
1 answer
7k views

How to get items from a SharePoint List by list URL path using Javascript REST API?

Using JavaScript REST API, we can get a list by URL path. Thus: http://vmdevsharepoint:12345/_api/web/lists/ Concatenating with this: ?$expand=RootFolder&$filter‌​=RootFolder/ServerRe‌​...
user avatar
3 votes
1 answer
554 views

What is the purpose of "EntityPropertyName" property of field?

I am getting all list fields using REST API, In result, I found there is "EntityPropertyName" property for each field. For some fields, it shows exactly same value as "InternalName" property But for ...
user avatar
  • 3,087
1 vote
2 answers
719 views

How to add aliases in SharePoint rest query?

I need a REST query to get field values in a SharePoint list. Internal name of the List is People and it has Id, Title, ShortName and Age columns. So REST Query is _api/web/lists/GetByTitle('People')...
user avatar
0 votes
1 answer
857 views

Error while Refreshing Excel data using connection with SharePoint Online List

We have created a SharePoint list with 50000+ items in it which has different views. We exported the same SharePoint list using Export to Excel functionality. After that we created a dashboard on ...
user avatar
4 votes
2 answers
131 views

Filter list with REST

I'm trying to filter a lookup column on my list using rest this is the column on my list it's a look up (connected to another list) and my rest on the list My query should get all the items that ...
user avatar
  • 73
0 votes
1 answer
945 views

OData $expand not working for User Field in SharePoint App

I am trying to use the OData $expand query option to fetch the Title of a SharePoint User Field. The field name is, Author (Created By). However, on using the $expand option, I am getting the ...
user avatar
  • 215
0 votes
1 answer
2k views

How to filter data where a field contains a something with OData

I'm trying to filter all the data using OData where the FileRef constains let's say '/sites/my_site/myfolder'for this I tried something like: $filter=substringof('/sites/my_site/myfolder', FileRef) ...
user avatar
1 vote
0 answers
191 views

Connect from external list from different site collections via OData in SP Online

I am using SharePoint Online and I have followed the steps of the tutorial: But the OData service url was the list of the second site collection. https://myTenant.sharepoint.com/sites/Site ...
user avatar
  • 291
0 votes
1 answer
126 views

Sharepoint dll for querying an ODATA API

I would like to call an ODATA service from a Sharepoint add-in, I am following the tutorial here: https://www.tutorialspoint.com/sharepoint/sharepoint_data.htm I have installed the Sharepoint Client ...
user avatar
1 vote
1 answer
2k views

Use REST odata webservice to update a task's custom field in Project server

I've figured out how to update a Task's basic fields via the OData Rest service using POST (X-HTTP-Method=MERGE): /ProjectServer/Projects('{#project}')/Draft/Tasks('{#Id}') The post content is a ...
user avatar
3 votes
1 answer
486 views

Using the OData endpoint to update or insert assignment in Project Server 2013 On Premise

Objective Connect to Project Server 2013 in order to update an existing assignment of a resource to a task or create a new assignment for the resource in case it (the resource) is not assigned to the ...
user avatar
0 votes
3 answers
343 views

Still getting Odata Service Connector Throttle Error - Already tried Set-SPBusinessDataCatalogThrottleConfig

I've already tried powershell to reset the throttle value as well as disabled it completely: This disables a throttling rule. Set-SPBusinessDataCatalogThrottleConfig -Identity $dbRule -Enforced:$false ...
user avatar