Use Postman with the Power Platform

This post provides some screenshots of how to use Postman (the desktop version) to trigger

  • A power automate flow
  • Dynamics 365 Web API

For a detailed explanation of how to setup Postman, please refer to the references at the end of the post

Setup

Referring to figure 1, the first step is to setup the environment

Note:

  • when selected, the name of the environment will be displayed in the top right of the screen.
  • the clientId (application id) is always set to 51f81489-aaae-42ee-1a9e-a25987d591f4 (Tools such as Postman can use this id rather than registering an app in Azure Entra ID)
  • the callback tells Postman where to listen to the Azure Entra ID’s authentication response (and retrieve the generated access token) and to complete the handshake.
  • the authurl will cause the Microsoft ‘Sign in to your account’ dialog to display
Figure 1

Connect to Power Automate

The following is an example of triggering a Power Automate flow which is exposed via a ‘HTTP request’ action

Referring to Figure 2, the ‘sig’ param is the security key. This is taken from the URL that exposes the flow. That is, the URL in the flow’s ‘HTTP request’ action

Figure 2
Figure 3
Figure 4
Figure 5

Connect to the Dynamics 365 Web API

Referring to Figure 6, pressing ‘Get New Access Token’ will present the Microsoft ‘Sign in to your account’ dialog.

Figure 6

Referring to Figure 7, the authorisation token generated by Microsoft Entra ID is presented to Postman via the callback

Figure 7
Figure 8

Further Reading

Power automate blog posts

Web API blog posts

References

1.) https://ecellorscrm.com/2023/02/28/setting-up-postman-environment-to-test-the-dataverse-apis-quick-tip/

2.) https://rajeevpentyala.com/2021/07/21/step-by-step-postman-tool-with-microsoft-dataverse-web-api/

3.) https://carldesouza.com/triggering-a-microsoft-flow-post-request-from-postman/