cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
andreastamedia Frequent Visitor
Frequent Visitor

Working API calls with service principal & data set refresh in postman

Hi,

 

I'm freaking out here - what a hell of a mess in the documentation. I wasted hours in trying to get an working example in postman for authenticating with a service principal and doing a simple refresh on a dataset 😞


Did anyone achieved it? Any working examples would be highly appreciated...

 

What we have done so far:

 

- Created Application

- Created service principal

- Enabled the feature in preview, added the group in which are service p. belongs

- Created workspace, added the security group (admin)

 

How do I now get the token in postman in order to use it in the next call?

4 REPLIES 4
andreastamedia Frequent Visitor
Frequent Visitor

Re: Working API calls with service principal & data set refresh in postman

Ok, i'm getting one step closer. I managed to get the access token by using our tenant ID in the oauth call and using the client id (application id) together with our secret:

 

bearer.png

 

I tried to do now a simple statement:

2019-03-08 12_54_42-Window.png

 

I'm using a new workspace (preview) and added the security group as Admin to the members. What's the missing point?

andreastamedia Frequent Visitor
Frequent Visitor

Re: Working API calls with service principal & data set refresh in postman

Has really no one a working example? Or I'm the only one who needs a service principial due to some 2FA?



Highlighted
srikanthguna Frequent Visitor
Frequent Visitor

Re: Working API calls with service principal & data set refresh in postman

@andreastamedia Did you get any solution for this ??

Jayendran Established Member
Established Member

Re: Working API calls with service principal & data set refresh in postman

Hi @andreastamedia ,

 

The flow will be , once you get the token

 

Use the token to takeover the DataSET

Then call the Refresh API using the token

 

Let me know if you face any issue with this

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)