Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

5

Sorry, but there is no way to run at elevated privileges from the client-side, and if there was a way, it would be roughly 0% secure. Depending on what you're trying to achieve, there are some ways that you might be able to work around it. For instance, if you can do it from a workflow, SharePoint 2010 workflows can do an impersonation step which runs as ...


3

You need to adjust the endpoint a bit. Need to specify ListItemAllFields,ModifiedBy as expand param and also specify Title,ModifiedBy,ListItemAllFields/InternalName as select values. Replace the internal name with the actual name of the column in your SP Doc lib. Modify the endpoint as below: /_api/web/GetFileByServerRelativeUrl('/sites/sitecollection/...


3

While Joe McShea is correct in that there is no direct "distinct" type of operation through the REST API, as I learned in the answer I accepted to a question I had over on S.O., you can get distinct values through some clever querying. Now, I'm not sure you can do this directly using oData query options (although you might be able to), you could certainly ...


2

No, SharePoint REST/OData has no equivalent select distinct. You can only achieve this by post-processing. Ref: How to get distinct values using Rest Api and bind to html dropdown


2

REST data can be consumed by just about everything: JavaScript, C#, PowerShell, and of course Power BI. Launch Power BI Desktop Click Get Data from the ribbon Click OData Feed. Enter a URL to a SharePoint web service. This one retrieves all Touring bikes. This example assumes a list named “Bikes for Power BI” Example: https://yourDomain.sharepoint.com/...


2

Answer that was provided by Gautam Sheth is great! As alternative you can use endpoint - /_api/web/lists/getbytitle If you know ID of listitem\document try: https://tenant.sharepoint.com/sites/sitecollection/_api/web/lists/getbytitle('Documents')/items(1)?$select=Title,InternalName,Editor/Title&$expand=Editor/Id Where 1 is document Id.


1

Requesting the Items collection for the library will bring back all items and folders regardless of what folder they are in. You can use the FileSystemObjectType or ContentType property to determine if the item is or is not a folder. In the example below I'm using the FileSystemObjectType. function getItemsOrFolders(fileSystemObjectType) { var message = ...


1

With SharePoint 2013 SP1, you should see the version 5.6 of the following assemblies in the GAC ( C:\Windows\Microsoft.NET\assembly\GAC_MSIL ): Microsoft.Data.Edm Microsoft.Data.Odata Microsoft.Data.Services.Client Microsoft.Data.Services System.Spatial You will probably find version 5.0 and version 5.6. Right click on the assembly, properties, details tab....


Only top voted, non community-wiki answers of a minimum length are eligible