web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Custom REST API with o...
Power Apps
Unanswered

Custom REST API with oAuth2

(1) ShareShare
ReportReport
Posted on by 18

Hi there

It's my first time, I am trying to set up a custom REST API.

 

My plan: I want to get some Events-Data from a Swiss Post REST API in my Power Apps Application, based on some Dataverse Tables.

 

Therefore I set up a custom connector with a Postman-File. Somehow, I have problmes with the authentication process. When I do the test, I can't login. I can't figure out, what the problem ist. Here are some information:

 

The setup of the Connector:

Gotorus_0-1666698103142.png

 

The security setup (Client id & Client secret I got from Swiss Post):

Gotorus_1-1666698160780.png

 

The actions setup. I will use the "GetEvents" method in my app:

Gotorus_2-1666698211598.png

 

Finally the test:

Gotorus_3-1666698369642.png

 

And the result of the test:

Gotorus_4-1666698391173.png

 

Something I did wrong with the security part. When I go back after testing to the security tab, the Client id, Client secret and the Refresh URL are gone:

Gotorus_5-1666698448273.png

 

Can someone give me a hint, what the problem could be?

 

Here are also the infos from Swiss Post about the REST API

Digital Commerce API (post.ch)

 

Categories:
I have the same question (0)
  • Gotorus Profile Picture
    18 on at

    A little add-on to my question.

     

    For the authentication process, Swiss Post wants on top of the OAuth2.0 genereal authentication also an Open-ID. In the documentation of Swiss Post they say:

    The access to the Swiss Post connector and the e-commerce API is controlled by both OpenID-Connect protocol version 1.0 and OAuth authorization protocol version 2.0.

     

    Is this possible with the custom connector options?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard