This video explains how approval tasks can be approved or responded out of power automate via flow API.
There could be scenerio where you want to approve tasks via Power App instead approval section of power automate or MS teams.
This video explains how API flow can be called using a custom connector inside a flow.
Custom connector help:
Service URL
------------
service.flow.microsoft.com/
Get Approval List
-------
india.api.flow.microsoft.com/...{environment}/approvalViews?api-version=2016-11-01
&$filter=properties/userRole eq 'Owner' and properties/isActive eq 'true'&$top=100
Response to approval
-------------
india.api.flow.microsoft.com/...{environment_name}/approvals/{approval_name}/approvalResponses?api-version=2016-11-01
body json
---------
{
"properties": {
"response": "Approve",
"comments": "asd"
}
}
3 дек 2023