Questions tagged [java]

The tag has no usage guidance.

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

Microsoft Graph API Look for folder in Sharepoint that contains another, specyfic folder

I try to get list of all folders that contain specific folder (always with the same name). So for example if my library in Sharepoint would look like this and I would like to look for all folders that ...
PastorPL's user avatar
  • 101
0 votes
1 answer
91 views

Can we use SharePoint as a backend for java Application?

Can we use SharePoint as a backend for java Application? If we can what are the complication that might occur and is there any authentication required? Please reply as soon as you can.
Aakash Singh's user avatar
0 votes
0 answers
1k views

Upload file (byte array) to SharePoint library using Java

Apologies in advance for such a long read but I had to provide as much details as possible. I have a web application (WA) running on a JAVA middleware. User uploads a file via the WA which is then ...
Lalit's user avatar
  • 101
0 votes
0 answers
571 views

Java Code: SharePoint Graph API CompactToken parsing failed with error code: 80049217

SharePoint Graph API to generate an Access token. URL to generate access token: https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token URL to download a file from SharePoint: https://graph....
Thomson Ignesious's user avatar
1 vote
0 answers
144 views

Unable to subscribe web-hook for SharePoint online

We are unable to subscribe web-hook for SharePoint online from our Spring-Boot application. Providing valid notification URL(https enabled, publicly accessible, valid domain name, Post method) as ...
developer-vivekjain's user avatar
0 votes
1 answer
1k views

Update SharePoint list item using Java via MS Graph API

Can someone offer guidance on why the following code does not update the title field of a SharePoint list item? public void setItemTitle(String siteId, String listId, ListItem item) { ListItem ...
DaveP's user avatar
  • 1
0 votes
1 answer
155 views

How to upload a file to document library in SharePoint online using REST APIs

We have a requirement to upload a file to SharePoint Online using REST APIs. When I try to open 'https://{site}/_layouts/15/AppRegNew.aspx', in order to generate an access token to authorize REST API ...
Darshan's user avatar
  • 11
1 vote
1 answer
2k views

Access denied to AppRegNew.aspx page in SharePoint

When I try to open 'https://{site}/_layouts/15/AppRegNew.aspx', in order to generate an access token to authorize REST API calls to the SharePoint site to retrieve data and manipulate the site data, I ...
Darshan's user avatar
  • 11
0 votes
1 answer
617 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 ...
Ruik's user avatar
  • 123
1 vote
1 answer
6k 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 ...
Ruik's user avatar
  • 123
0 votes
1 answer
2k 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.
Safa KH's user avatar
1 vote
0 answers
240 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": "...
Foat Sharafutdinov's user avatar
0 votes
2 answers
1k 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 ...
Green Y.'s user avatar
  • 103
1 vote
1 answer
15k 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 ...
Ayushi Goel's user avatar
0 votes
1 answer
523 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 ...
Ganesh Gudghe's user avatar
0 votes
2 answers
853 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 ...
drn's user avatar
  • 3
0 votes
1 answer
184 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"> <...
Ganesh Gudghe's user avatar
1 vote
0 answers
395 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 ...
Bharti Gulati's user avatar
0 votes
0 answers
85 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": "...
Javabava's user avatar
0 votes
1 answer
215 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 ...
Catamak's user avatar
  • 11
0 votes
1 answer
320 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 ...
Owen's user avatar
  • 1
0 votes
0 answers
42 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/...
Ram's user avatar
  • 1
0 votes
2 answers
5k 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 ...
Jon C's user avatar
  • 1
1 vote
0 answers
267 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"...
Srinivas's user avatar
0 votes
1 answer
1k 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 ...
Doctor Ford's user avatar
3 votes
2 answers
4k 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.
Anurag_BEHS's user avatar
1 vote
1 answer
86 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 ...
SteffPoint's user avatar
5 votes
3 answers
40k 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 ...
Anurag_BEHS's user avatar
2 votes
0 answers
102 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=...
Franjo Pintarić's user avatar
2 votes
2 answers
12k 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 ...
user3296535's user avatar
0 votes
1 answer
7k 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-...
Nicholas DiPiazza's user avatar
1 vote
3 answers
3k 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 ...
user3574273's user avatar