cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

HTTP calls to SharePoint

naveen
New Contributor

I am trying to do a post files to the SharePoint. For that I took help from below Link -

After registering the Add-In, I granted the permission and retrieved the Tenant ID through Postman.
After that I need to generate the Access Token, however I am getting below error -

{
โ€œerrorโ€: โ€œinvalid_requestโ€,
โ€œerror_descriptionโ€: โ€œAADSTS90002: Tenant f12a3f9e-37a5-4551-80f1-e93a20857154 not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator.\r\nTrace ID: 2d277d04-473c-4a21-aa5b-b3a66b740100\r\nCorrelation ID: 921acc97-f0cd-48d3-ae17-1cf88461c6d6\r\nTimestamp: 2018-03-01 10:02:30Zโ€,
โ€œerror_codesโ€: [
90002
],
โ€œtimestampโ€: โ€œ2018-03-01 10:02:30Zโ€,
โ€œtrace_idโ€: โ€œ2d277d04-473c-4a21-aa5b-b3a66b740100โ€,
โ€œcorrelation_idโ€: โ€œ921acc97-f0cd-48d3-ae17-1cf88461c6d6โ€
}

Can anyone help me on this, how to get the Access Token?

2 REPLIES 2

aleung
Contributor III

Were you able to simulate this with Postman 1st?

Did you follow the instruction of โ€œGenerate the Access Tokenโ€ section?

naveen
New Contributor

Hi - @aleung , Thanks for reply. I tried that, but not working. I am kind of stuck.
I have followed below steps -

  1. I have Register as a Add-In in SharePoint.
  2. I have granted permission to the Add-In.
  3. Retrieved the Tenant ID through Postman (Get method).
  4. Tried to generate the access token using Postman, but getting below error -

โ€œerrorโ€: โ€œinvalid_requestโ€,
โ€œerror_descriptionโ€: โ€œAADSTS90002: Tenant f12a3f9e-37a5-4551-80f1-e93a20857154 not found. This may happen if there are no active subscriptions for the tenant. Check with your subscription administrator.\r\nTrace ID: 2d277d04-473c-4a21-aa5b-b3a66b740100\r\nCorrelation ID: 921acc97-f0cd-48d3-ae17-1cf88461c6d6\r\nTimestamp: 2018-03-01 10:02:30Zโ€,