Sending POST request to Sharepoint

Dear All,

I'm trying to send POST request to Sharepoint as in the image https://ibb.co/d0jLW06

In case link is not working, here are the details:

Header:

  • Content-type: application/x-www-form-urlencoded

Body (form-data):

  • grant_type:client_credentials
  • resource: xxxxx
  • client_id: xxxxx
  • client_secret:xxxxx

In postman response status is 200, the same request made in Bonita ->Connector-in returns 400 error.

I guess it may be a payload format, which connector limit to plain text, json, or xml.

Any ideas how to correctly configure the connector.I regret to say, but for what i've seen so far in the documentation is rather poor.

I use Community Edition.

 

 

 

 

Hi,

The latest version of the REST connector (1.1.1) now support the application/x-www-form-urlencoded content type for POST and PUT method.

The request body must follow the below format:

key1=value1&key2=value2...

HTH
Romain