Questions tagged [java]
The java tag has no summary.
32 questions
0votes
0answers
11views
How to create a OneNote notebook in a newly created folder?
I am creating a new folder within an existing one using this little snippet: public DriveItem createDriveItemFolder(String driveId, String folderId, String name) { DriveItem newDriveItem = new ...
0votes
1answer
93views
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 ...
0votes
1answer
151views
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.
0votes
0answers
610views
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....
1vote
0answers
203views
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 ...
0votes
1answer
1kviews
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 ...
0votes
1answer
212views
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 ...
1vote
1answer
3kviews
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 ...
0votes
1answer
774views
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 a ...
1vote
1answer
8kviews
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 ...
0votes
1answer
3kviews
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.
1vote
0answers
274views
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": "...
0votes
2answers
2kviews
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 ...
2votes
1answer
20kviews
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 ...
0votes
1answer
612views
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 ...