I am working on SharePoint 2013 REST APIs for integration purpose. I have on-premise SharePoint 2013 instance and followed How to enable JSON minimal to setup JSON Accept Type for REST APIs.
All the APIs are working fine with accept header as minimalmetadata, nometadata & verbose. However, OData filters $expand with minimal & nometadata not working and getting 200 OK with JSON response body without having expanded attributes.
If I change accept header to verbose I could see expanded attributes in JSON response.
Please have a look on below sample request where expand not working for minimal and nometadata accept header:
http://mysharepointhost/_api/Web?$expand=webs
http://mysharepointhost/_api/Web/Lists(guid'xxx')/items?$expand=AttachmentFiles
All the above request with $expand works for me on sharepoint 2016 and sharepoint online.
Please suggest.
Related
Unable to select expanded properties of an expanded type, when using a query with $expand operator.
Sharepoint 2016 list contains a 'Person or Group' field (column=Client), when querying the list:
SSIS 2017 Odata query:
.../_vti_bin/listdata.svc/mylist?$select=Client,Client/UserName&$expand=Client
Only ClientId is returned in the preview.
When using the browser with above url, the XML scheme contains desired properties - nested.
Any suggestions?
Also, the odata source is using V3.
Is it possible to force it to use V4? If so, how?
ODATA with Sharepoint $expand
Try modifying the Select part as following:
.../_vti_bin/listdata.svc/mylist?$select=Client/Name,ClientId&$expand=Client
Similar issue posts
Using $expand query option with OData, SSIS and SharePoint 2013
OData $expand not working for User Field in SharePoint App
Additional Information
Using the $expand OData Query Option in SharePoint 2013
SharePoint 2013 API OData For Lookup Fields
Adding query options to the SSIS OData Source
Sharepointlist adapter
I really don't like using ODATA Source to read from Sharepoint since it is a generic component for Open Data. Instead, in order to read from a Sharepoint list, you can use the SharepointListAdapter which is a component created by Microsoft community:
SharepointListAdapters-2017-11-27
GitHub project - mssql ssis community samples
The project was published on Codeplex, later after Codeplex is turned into archive it is published on GitHub
Official documentation Download the white paper, it contains a step by step guide on how to use this component
is there a way to get the ACL for a particular file in sharepoint 2010 either by passing filename along with list name or fileId to any of the API's.
If yes please specify the API and parameters to be passed to that API
Hi I am trying to retrieve a list of all files and folders using the REST API as described here:
http://msdn.microsoft.com/en-us/library/office/dn605900(v=office.15).aspx
Since I will be working with files and folders can anyone please tell me what is API Endpoint for retrieving files and folders.
For example, The API Endpoint for Discovery service is: https://api.office.com/discovery/me"
AND
for Mail, Calenddar and Contacts API its : https//outlook.office365.com
Thanks
It's my understanding that the endpoint is specific to the O365 tenant, for example https://contoso-my.sharepoint.com/personal/jim_contoso_com/_api.
Again, it's my understanding that you can use the Discovery service's https://api.office.com/discovery/me/Services endpoint (by including an access token authorization header) to get the user specific service endpoint, however it looks like the Discovery service is broken. It was working a few weeks ago, but not today.
You may have an error but not using the latest tools. You should update your tools to Visual Studio 2013 UPdate 2 and pull down the new tools for the Office 365 API Preview from within the IDE. This will allow you to support a lot more project types as mentioned in the blog post http://visualstudiogallery.msdn.microsoft.com/7e947621-ef93-4de7-93d3-d796c43ba34f
I'm able to connect to self-hosted CRM sites just fine with the default Odata driver within LinqPad. The URI I use in the "WCF Data Services (OData) Connection" dialog for self-hosted is in the format http://MyServer.com/MyOrgName/xrmservices/2011/OrganizationData.svc. The user name is in the format "domain\username".
When I attempt to follow the same format for an CRM Online instance, it doesn't work.
I'm guessing it's either because of the https, or the windows live credentials, but don't know what steps to take to fix the problem...
Please note, I want to use the odata provider, not the CRM 2011 provider. The odata provider gives me the URL to retrieve the data which is extremely helpful for javascript. The CRM 2011 provider gives the fetch XML, which isn't what I want to use in this case...
I contacted LinqPad and they said they don't currently support Windows Live Authentication. I'm guessing that one would have to write a plugin and use the logic from this page to handle the authentication issues.
We are using Open Rasta on an Azure Web Role to provide a REST API. Our GET methods work fine returning Json data. When I try and POST a request with a Json body I get this error.
The server cannot service the request because the media type is unsupported. It returns a 415 code. I examined the messages in Fiddler and they look ok.
I am guessing that IIS is not setup to allow -> Content-Type: application/json
I found this http://msdn.microsoft.com/en-us/library/gg433059.aspx but am not sure what I need to do to get this to work.
Any help would be great.
I dont recall the answer exactly, but in Non Azure types of situations at least there is a web.config file that you set to allow Posts.
I believe it's this:
system.web
protocols
add name = "HttpPost"