Integrate SharePoint with Web Requests

  • 4 January 2023
  • 1 reply


I'm trying to implement a Web Request using the API Credentials in order to save attachments on the SharePoint Online library. 

So far i have created an AppRegistration and an enterprise app on the Azure Side, the next step would be the generating of an API key with the FreshService Web Request APP, when i try to get the API key im getting the following error 


  "error": "invalid_request",
  "error_description": "AADSTS900144: The request body must contain the following parameter: 'grant_type'.\r\nTrace ID: \r\nCorrelation ID: a\r\nTimestamp: 2023-01-04 14:04:43Z",
  "error_codes": [
  "timestamp": "2023-01-04 14:04:43Z",
  "trace_id": "",
  "correlation_id": "",
  "error_uri": ""


i suppose that the issue is in the JSON Body which looks like this 

  "grant_type": "client_credentials",
  "client_id": "  ",
  "client_secret": "  ",
  "resource": "00000003-0000-0ff1-ce00-000000000000/xxx"



1 reply

seems FS doesn’t support application/x-www-form-urlencoded, hope this will be implemented soon.