Hot answers tagged

3

HTTP POST: https://<org>.sharepoint.com/sites/dev/_api/web/lists/getByTitle('list title')/items(<item id>) Payload: { "__metadata": { "type": "SP.Data.ClientsListItem" // your might be different }, "OData__ModerationStatus": 0, "OData__ModerationComments": "Approved by <user name>" } To find out your list'...


2

For connecting to share point using rest Api 1st we need to request client id, client secret for a share point library. Step 1 - once you got client id and secret follow steps mentioned at - https://www.ktskumar.com/2017/01/access-sharepoint-online-using-postman/ to generate access token. using access token we can connect to share point using Rest Api or ...


2

The extra space after "Title" will cause the 400 error. "Title ":"New Title" vs. "Title":"New Title" If you can get the full error message, you will probably see something like this: "value": "The property 'Title ' does not exist on type 'SP.Data.AnnouncementsListItem'. Make sure to only use property names that are defined by the type."


1

As told by Sergei Sergeev. We can change approval status of a file using Rest. 1. post request header. We need all these parameters in header. (if access token have fullControl as permission then we even don't need x-requestdigest in header) Accept: application/json;odata=verbose Authorization: Bearer <Your access token> Content-Type: application/...


1

You could use rest end point to add folder with %: POST http://<site>/_api/web/folders/AddUsingPath(decodedurl='Path') https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/supporting-and-in-file-and-folder-with-the-resourcepath-api SharePoint folder naming restrictions: https://support.office.com/en-us/article/invalid-file-names-and-...


1

Finally figured this out. My solution depends on my attempt No. 2 and this tutorial: http://www.ktskumar.com/2017/01/access-sharepoint-online-using-postman/ As I wrote, I already got the bearer token. I just couldn't use it because of the 403 error. In the last section Access the SharePoint resource instead of this URL https://<sitename>.sharepoint....


1

You cannot copy folders from one location to another using Copy.CopyIntoItems - this method copies a document represented by a Byte array to one or more locations on a server. For more information, refer Copy.CopyIntoItems method. A new utility class Microsoft.SharePoint.Client.MoveCopyUtil is available on the latest version of the O365 Microsoft....


1

Have a look at the SharePoint REST API. The documentation has a special section on how to work with lists and items. Essentially you would call something like http://site-url/_api/web/lists/GetByTitle('Test')/items Also there seems to be JShare.


1

I have no idea about Polarion ALM. You can try the following approaches, If possible, use C# and Sharepoint client context(CSOM) in your application. Save the document in your local machine, where the application is running and use PowerShell script to upload the saved file to SharePoint application. Up to my knowledge, these are the solutions, what I can ...


1

This Code is working perfectly to upload file up to 249MB using SP online. You need to add "httpclient-4.3.6" this jar in your build path. package test; import java.io.File; import java.io.IOException; import java.io.UnsupportedEncodingException; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache....


1

You are missing several pieces from what I'm reading. You finish setting up SharePoint to use Kerberos. I'll try to keep this short. The original white paper on SharePoint and Kerberos is a 180 pages long. Get your DNS setting for your site and look at your A name. If your domain is one word, then it's that word. if it's multiple dots, it's probably ...


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