What is policy and where is it used?
Policies can be used to modify the behavior of connectors at runtime. For example, policies are used to enforce throttling limits on API calls, to route calls to different endpoints, and so on. Policies are used extensively by many of the out-of-box connectors we have today, however, they haven't been available to custom connectors. We're now making it available for custom connectors through easy to use templates.
- Basic experience building flows, and custom connectors.
- Basic understanding of the OpenAPI Specification (formerly known as Swagger).
- The sample OpenAPI definition for this tutorial.
How to use a policy template?
Policy template are available only for custom connectors. To use a policy template, open Power Automate portal and either create a new custom connector or edit an existing one.
In the custom connector wizard, select the Definition page.
From the Definition page, select New Policy.
This will open the policy templates page on the right.
Select a policy template from the Template dropdown.
Provide the parameter values required by the policy template. Repeat steps 2 through 4 for adding additional policy templates.
At the top right corner of the wizard, select Create connector (for new connector) or Update connector (for existing connector) to save the policy templates to your connector.