Rest API Extension to login and upload a Document to SharePoint

1
0
-1

Hi,

We created an Rest API Extension to login and upload a Document to SharePoint.

In this API Extension, we can get the Access Token from login in SharePoint with the authentication endpoint, but when we send a multpart/form-data request with the File to the API Extension and we tried to get the parts from that request, the parts object return an empty list (for this API Extension we're using groovy).

I already declare the Annotation @MultipartConfig for this type of request and the method for this API Extension is POST, but I still couldn't get the file from the request.

Is there some kind of additional configuration required in order to create this kind of API Extensions receiving a multipart/form-data request?

Thanks in advance. Regards

2 answers

1
0
-1

Following previous comment, check out the tutorial How to integrate sharepoint with Bonita

1
0
-1

Hello Marielle,

Why using a REST API Extension to do so, when a process can do that with provided connectors? Orchestrating the data transfer between systems is the responsibility of processes in Bonita applications (it provides error management capabilities, retries, audit trail, events management, etc...)

Building a REST API Extension to do the same might lead to a lot of efforts to recreate the same as the things provided OOTB by Bonita processes.

The best might probably to have the UI to start a process that has the sole responsibility to upload the provided document to Sharepoint?

Captain Bonita

Notifications