web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Trigger Power Automate...
Power Pages
Unanswered

Trigger Power Automate flow with Power Apps Portal Entity list action buttons

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

Could anyone please suggest me how we can run a Power automate flow for an entity list record using the Entity list action buttons?

I could find it is possible to run a CRM Workflow using the entity list action button. Is there a similar way for running a Power Automate flow ? Any help to achieve this would be greatly appreciated...

Thanks in advance.

Categories:
I have the same question (0)
  • H V Profile Picture
    1,510 on at

    Hi @Anonymous 

    You can call Power Automate from Entity List by adding below javascript code in JavaScript Section:

     

    $(document).ready(function () {
     $(".entitylist.entity-grid").on("loaded", function () {
     $(this).children(".view-grid").find("tr[data-id]").each(function (i, e){
     var id = $(this).attr("data-id");
     $(this).append("<td><input type='button' onclick='callPowerAutomate(\"" + id + "\");' value='Call Powerautomate' /></td>");
     });
     });
    });
    
    
    function callPowerAutomate(id){
     var objInvoice = {};
     objInvoice.invoiceid = id;
     var stringJSON = JSON.stringify(objInvoice);
    
     var httpTriggerUrl = "https://prod-29.westus.logic.azure.com:443/workflows/5192b9bc428746ec93b21e6c8f9d0fe7/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=";
    	
     $.ajax({
     type: "POST",
     contentType: "application/json; charset=utf-8",
     datatype: "json",
     url: httpTriggerUrl,
     data: stringJSON,
     async: true,
     beforeSend: function (XmlHttpRequest) {
     XmlHttpRequest.setRequestHeader("Accept", "application/json");
     XmlHttpRequest.setRequestHeader("Content-Type", "application/json; charset=utf-8");
     XmlHttpRequest.setRequestHeader("OData-MaxVersion", "4.0");
     XmlHttpRequest.setRequestHeader("OData-Version", "4.0");
     },
     success: function (data, textStatus, XmlHttpRequest) {
     alert("success");
     },
     error: function (xmlHttpRequest, textStatus, errorThrown) {
     alert(xmlHttpRequest.responseJSON.error.message);
     }
     });
    }

     

    --------------------------
    If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!

     

     

  • Community Power Platform Member Profile Picture
    on at

    Let me see if I have this...

     

    Create a new action named "Call Powerautomate" on the action list for each row in the list with:

    UrklnmeMS_2-1641916513068.png

     

     

    The url of the "When a http request is received" flow:

    UrklnmeMS_1-1641916388302.png

     

     

    Send a Http request using Ajax with:

    UrklnmeMS_0-1641916345605.png

     

    Thoughts, concerns?

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard