Questions tagged [java]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
3answers
9k views

Download and upload file from share point using Java (Rest API call)

I Know there are several post on sharepoint.stackexchange/stack overflow for this. But I didn't get from any of the post how to achieve this. I have access of share point (I mean share point ...
3
votes
2answers
1k views

How to update ModerationStatus (approval status) of a file in share point using Rest API

after check in a file using rest api , it having approval status as 'draft', do we have any rest api url (postman) to update approval status of a file in share point.
2
votes
2answers
4k views

How to call the SharePoint rest API using Java web application?

I have developed one of the web based Java Application in which one of the page containing the form for uploading a files, as of now uploaded file stored on the Application server, but instead of this ...
1
vote
1answer
47 views

How to authenticate a Java Job at Sharepoint Online

I want to manupulate (read, write, delete) files in a document library of my sharepoint (hosted at Sharepoint Online). Ultimately this will be Part of a Java Webapplication where a backend job runs ...
1
vote
1answer
44 views

Send exported Word Document from another application to SharePoint Library (SP2013 on-premise)

First of all, there are similar questions on this forum, but I don't really know if and how I can adopt them to my Use-Case, which is based on a workflow script. I am working on a script, which ...
1
vote
0answers
32 views

How to create a new content type in SharePoint using MS Graph / REST?

I tried to add a new content type to list using MS Graph Explorer: Request: POST https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/contenttypes with body: { "description": "...
1
vote
0answers
108 views

503 Service unavailable while uploading file on SharePoint online of size more than 249 MB

I am trying to upload the file on SharePoint online larger than 250MB using rest API. I have divided data of the file in small chunks say 100MB and used Start upload, continue Upload and Finish Upload ...
1
vote
0answers
128 views

SharePoint form digest response 404 using java REST api

I am Using apache Http Client for connecting sharepoint using rest api. code snippet is as below: HttpClient client = HttpClientBuilder.create().build(); String baseurl = messages.getString("baseurl"...
1
vote
0answers
57 views

Sharepoint Online REST API - cannot get .aspx files

I'm using a Java app to get files from sharepoint online. I'm using the following REST API endpoint: apiUrl = BASE_API_URL + "/web/Lists/GetByTitle('" + sharepointList + "')/Items?$select=...
1
vote
3answers
2k views

Add metadata(columns data) to a file in Document Library using java. Sharepoint 2013

I'm new to sharepoint, I've created a web services where i post files to a document library but i also want to add metadata(columns data) 'Title' at the same time as i post the file using java. Is ...
0
votes
2answers
2k views

SharePoint POST REST API returning error code 400

I'm attempting to create an item in SharePoint on premise 2016 list using Java and SharePoint API. Forgive me if I missed it - I see a few related questions but they do not seem to really answer my ...
0
votes
1answer
22 views

API Call to create folder with %-Symbol either fails or doesn't decode

I'm implementing REST Calls to Sharepoint in Java. I create folders by sending POST Requests to /_api/web/GetFolderByServerRelativeUrl('/sites/MySite/Folder/')/folders/add('NewFolder') This creates ...
0
votes
1answer
112 views

Sharepoint -How to Move/Copy folder to another location Using SOAP API copyIntoItems()

I am trying to move/copy a folder from one location to another location it is giving me an error Object reference not set to an instance of an object but it is working fine with File. I am using ...
0
votes
1answer
36 views

Anyway to pull Sharepoint lists directly with a Java program to extract large amounts of data without first exporting to excel?

Does anyone know if there is anyway to pull lists from SharePoint directly using a Java program? I would like my program to automatically pull data from SharePoint every so often that I would set up ...
0
votes
1answer
3k views

Can authenticate through Negotiate with PowerShell but not with Java

I need some help setting up Kerberos on SharePoint correctly for a test single farm server. I am able to successfully use PowerShell to authenticate to this server as a given kerberos user: Invoke-...
0
votes
1answer
26 views

Sharing a folder using sharepoint Rest API

Do you have an idea how to share a folder with a list of users(list of emails) using Sharepoint Rest Api from a java application? Thanks.
0
votes
2answers
34 views

Upload file to SharePoint private group via REST API

I want to know how to upload files to SharePoint private Group via REST API. How to get SharePoint private Group folder? How to upload file to this private Group folder? Here is link of my private ...
0
votes
1answer
87 views

How to get content of file in sharepoint using sharepoint rest api

I am using below endpoint to get the content of file in sharepoint: https://<site>/_api/web/GetFolderByServerRelativeUrl('folder name')/Files('file name')/$value?binaryStringResponseBody=true ...
0
votes
2answers
62 views

How to get list items using multiple itemIDs

I have multiple itemIds, and I like to get the actual items using these itemids in just a single request, is that possible? I know about getListItem() method but that would use only 1 itemid, hence ...
0
votes
1answer
61 views

sharepoint 2013 how to update managed metadata field (TaxonomyFieldType) using soap API

I am trying to update managed metadata field (TaxonomyFieldType) using SOAP API following is my SOAP XML <Batch OnError = "Continue"> <Method ID = "1" Cmd = "Update"> <...
0
votes
0answers
67 views

I am trying to get Security Token in sharepoint authentication using Java

I am trying to get Security Token in sharepoint authentication using Java. Code I am using: public String buildSecurityTokenRequestEnvelope() { String envelopeTemplate = "<s:Envelope ...
0
votes
0answers
18 views

Accesing excel cell data hosted on SharePoint from java code level

I have following use case: I need to get to SharePoint, pass authentication using my credentials and retrieve data from excel file(certain cell) stored inside. Everything done in java. I was ...
0
votes
0answers
38 views

How to get the content of a specific document version

I am trying to retrieve the content of a specific version with Sharepoint API. I can get metadata like this : { "d": { "results": [ { "__metadata": { "id": "...
0
votes
1answer
52 views

Get a document modifiedBy in JAVA with RestApi

As you can see in images, I have some folder in my document library. I wanna reach the files in the folder and take the "modifiedby" column and change it with java-rest api. I can reach the file ...
0
votes
0answers
21 views

Paging in sharepoint 2013 for JAVA REST API [duplicate]

I'm trying to implement sharepoint pagination in a way that you send how many items to skip and retrieve the next n number of items. Is there a way to go about it? https://sharepoint.com/_api/web/...
0
votes
1answer
631 views

JAVA To Query SharePoint

I do not have direct access to my SharePoint server. I access the SharePoint data from a URL that is available only internal on my work VPN. Is there a way in JAVA to query this URL and return data ...