Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Informatique1
Contributor III
Contributor III

Connect to API Microsoft Graph

Hello,

I would like to know how to connect to API from Microsoft Graph.

Everything works fine in Postman but how to put those parameters in a tRestClient component? (or perhaps there's another component)

TenantID

ClientID

ClientSecret

Just first to get the token and use the API?

Thanks a lot

Labels (3)
1 Solution

Accepted Solutions
Informatique1
Contributor III
Contributor III
Author

Solution was given to me in Stackoverflow.

 

Here's the trick:

0695b00000aGjkjAAC.png 

Status 200 with access_token in response. Perfect.

View solution in original post

4 Replies
Anonymous
Not applicable

Hello,

To connect to API from Microsoft Graph, it's required to get one access token first by the url: https://developer.microsoft.com/en-us/graph/graph-explorer0695b00000YDsNLAA1.pngthen, in the job, you can use the component tREST or tHTTPRequest to invoke the api URL

Please remember to setup the HTTP Headers as the below

0695b00000YDsNQAA1.png

Informatique1
Contributor III
Contributor III
Author

Hello,

Thanks for the reply.

 

As I said it is working fine in Postman, and in Talend also with the Token.

What I need to know first is how to get the Token from Talend? and not from microsoft application.

I have a 200 status response but that send me to an html page which indicates there's some problems with cookies?! I don't get it since all the password and ID are correct.

 

 

Informatique1
Contributor III
Contributor III
Author

So for the moment I send a request to the API to get the Token with the https://login.microsoftonline.com/{{TenantID}}/oauth2/v2.0/authorize URL.

What I get is a status 200 that ask me to login in my corporate network.

Informatique1
Contributor III
Contributor III
Author

Solution was given to me in Stackoverflow.

 

Here's the trick:

0695b00000aGjkjAAC.png 

Status 200 with access_token in response. Perfect.