Evenementer
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
Mat 4 Chance fir matzemaache kënnt Dir e Konferenz-Pak gewannen an op d’LIVE Grand Finale zu Las Vegas kommen
Méi gewuer ginnDëse Browser gëtt net méi ënnerstëtzt.
Upgrat op Microsoft Edge fir vun de Virdeeler vun leschten Eegeschaften, Sécherheetsupdaten, an techneschem Support ze profitéieren.
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.
Notiz
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 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.
Notiz
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 under 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.
Notiz
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.
Wichteg
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(){
});
Notiz
When you move Power Pages site components that include cloud flows from one environment to another, the cloud flows must be registered in the target environment. If you don't register the cloud flows, invoking them from the website results in a forbidden error.
To register the flow with the target environment, follow these steps:
Sign into Power Pages and select the target environment.
Locate the site and select Edit.
Go to the Set up workspace, then select Cloud flows under Integrations.
Within the Cloud flows in this site list, look for the register button.
To register the flow, select the icon.
Evenementer
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
Mat 4 Chance fir matzemaache kënnt Dir e Konferenz-Pak gewannen an op d’LIVE Grand Finale zu Las Vegas kommen
Méi gewuer ginnTraining
Modul
Integrate with cloud flows - Online workshop - Training
Learn how to integrate with cloud flows.
Zertifizéierung
Microsoft Certified: Power Automate RPA Developer Associate - Certifications
Demonstrate how to improve and automate workflows with Microsoft Power Automate RPA developer.