Before getting started, ensure that you have successfully imported the Approval App into your Power Apps environment. For more information, see this tutorial.
Custom connectors are a powerful way to connect to any existing API from within Power Apps. A custom connector is a wrapper around a REST API that allows the Power Platform to communicate with your REST API.
From within Azure API Management, you can easily create such custom connectors. Follow the tutorial on how to export your API from API Management.
Open the Podcast Approval App within Power Apps:
There will be some error messages within the Power App:
To fix these, add the custom connector to the Approval App via the data tab:
Note: Search for the name of your custom connector created via API Management. If you have enabled subscriptions within API Management, you need to provide an API key to the consumer to access the API. Please read this article to find out how to access subscription keys within API Management.
Next, update your Power App via the Power Editor.
Every time the Power App starts up, we want to make an API call getting us the information about current requests. For this, change the OnStart behavior and modify '.NETPodcasts'.GetUserSubmittedFeeds():
Additional Information:
- '.NETPodcasts' is referencing the name of the custom connector
- GetUserSubmittedFeeds() is referencing the API's operation name
Next, update the refresh button properties by modifiying '.NETPodcasts'.GetUserSubmittedFeeds():