Events
Mar 31, 11 PM - Apr 2, 11 PM
The ultimate Microsoft Fabric, Power BI, SQL, and AI community-led event. March 31 to April 2, 2025.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Power Automate cloud flow allows users to create automated workflows between different applications and services. You can use a Power Automate cloud flow to create logic that performs one or more tasks when an event occurs. For example, configure a button so that when a user selects it, send an email or meeting request, update a record, collect data, synchronize files, and other tasks.
Now, you can securely invoke Power Automate cloud flows from Power Pages to interact with 1000+ external data sources and integrate it into your business site.
Note
To integrate with Power Pages, a Power Automate license is required. It's recommended to use a Power Automate Process license in the production instance.
Create a cloud flow.
Add the flow to your site.
Invoke a flow from your website.
Sign into Power Pages.
Select site + Edit.
Navigate to the Set up workspace, then select Cloud flows under App integrations.
Select + Create new flow.
Search for Power Pages Select When Power Pages calls a flow trigger.
Define your flow steps and return values and select Save.
Note
Only solution-aware flows can be attached to the Power Pages site.
After you create an instant cloud flow, it needs to be associated with the Power Pages site and secured with a web role.
Sign into Power Pages.
Select site + Edit.
Navigate to the Set up workspace, then select Cloud flows (preview) under App integrations.
Select + Add cloud flow.
Search for the recently created flow.
Select + Add roles under Roles.
Select roles that should have access to the flow.
Select Save.
Note
When you add a flow to your site, a unique URL is generated that allows you to invoke the cloud from your site.
Use Power Pages cloud flow API to interact with Power Automate to perform external service integration. Cloud flow API operations consist of HTTP requests and responses.
Operation | Method | URI |
---|---|---|
Invoke cloud flow | POST | [Site URI]_/api/cloudflow/v1.0/trigger/<guid> |
Example:
Request
POST https://contoso.powerappsportals.com/_api/cloudflow/v1.0/trigger/4d22a1a2-8a67-e681-9985-3f36acfb8ed4
{
"Location":"Seattle"
}
Response
Cloud flow without response action
HTTP/1.1 Accepted
Content-Type: application/json
Cloud flow with response action
HTTP/1.1 200 OK
Content-Type: application/json
Body
{
"conditions":"Rain",
"humidity":"93",
"latitude":"47.60620880126953",
"longitude":"-122.33206939697266"
}
You don't need to include an authentication code, because the application session manages authentication and authorization. All API calls must include a Cross-Site Request Forgery (CSRF) token.
In a cloud flow, you can define input parameters of type Text, Boolean, File, and Number. The parameter name you define in the request body should match the parameter name defined in the cloud flow trigger.
Important
This sample demonstrates how to call a flow using Asynchronous JavaScript and XML (AJAX).
shell.ajaxSafePost({
type: "POST",
url: "/_api/cloudflow/v1.0/trigger/44a4b2f2-0d1a-4820-bf93-9376278d49c4",
data: {"eventData":JSON.stringify({"Email": "abc@contoso.com", "File":{"name":"Report.pdf", "contentBytes":"base 64 encoded string"} })}
})
.done(function (response) {
})
.fail(function(){
});
Note
Events
Mar 31, 11 PM - Apr 2, 11 PM
The ultimate Microsoft Fabric, Power BI, SQL, and AI community-led event. March 31 to April 2, 2025.
Register today