Questions tagged [java]
The java tag has no summary.
31 questions
0
votes
1
answer
109
views
Programatically Change Folder Content Type JAVA
I need to Programatically be able to change the content type of the folders in a SharePoint Online Site.
I have Java Program that needs to run and detect if a folder has the correct Content Type and ...
0
votes
0
answers
636
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....
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 ...
1
vote
1
answer
3k
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 ...
1
vote
1
answer
9k
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
0
answers
281
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": "...
2
votes
1
answer
20k
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
2
answers
1k
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 ...
1
vote
0
answers
459
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 ...
0
votes
1
answer
230
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
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/...
1
vote
0
answers
295
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"...
3
votes
2
answers
6k
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.
6
votes
4
answers
49k
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 ...
2
votes
2
answers
13k
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
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 ...