Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Unanswered

Power Automate response not reflecting in network tools or Power Pages

(1) ShareShare
ReportReport
Posted on by 6
Power Automate returns response in UI
But no response received in Power Pages (and also network tools)

Power Automate





Network tools screenshot





Categories:
  • EI-20041432-0 Profile Picture
    6 on at
    Power Automate response not reflecting in network tools or Power Pages
    Power Pages does not receive Power Automate response
    Below is the ajax call that i am using
    document.getElementById("UpdateButton")?.addEventListener("click", function (event) {
        console.log("Is this working");
       
       
        var SAP_OPOR = crc81_sap_opor_name.value;
        var LineNum = crc81_linenum.value;
        var _url = "/_api/cloudflow; -- removed the full url
     
     
      var data = {};
            data["SAP_OPOR"] = SAP_OPOR;
            data["LineNum"] = LineNum;
    //debugger;
        var payload = {};
        payload.eventData = JSON.stringify(data);
        shell.ajaxSafePost({
                type: "POST",
                url: _url,
             //   contentType: "application/json",
                data: payload,
               // "origin": "*",
               //cogs : true,
            })
     
                  .then(response => {
          // Assuming the flow returns data that you want to display
          // Display the return value in an element, e.g., with class 'description'
           const result1 = JSON.parse(response);
               debugger;
                console.log(result1);
                alert("worked 1");
                localStorage.setItem("SupplierPowerAutomateOutput1",result1["varoutput"]);
      })
     
            .done(function (response) {
                const result = JSON.parse(response);
                debugger;
                console.log(result);
                alert("worked 2");
                localStorage.setItem("SupplierPowerAutomateOutput2",result["varoutput"]);
                onSuccess();
            })
           
            .fail(function () {
               alert("failed");
            });
    });
    });

    In failure, it does return to the .fail when i force an error on the workflow that is not caught
    In the existing case. The workflow return success, so i was expecting the ajax to either get into .then or .done which would return the response from power automate

    The workflow pushes data to SAP. And my outcome is to return that message as a text onto power pages. (for the moment its a fixed value to get it functioning first)
    But as i do not get the response in the result1["varoutput"], i am not able to return it onto the front end
  • ronaldwalcott Profile Picture
    3,810 on at
    Power Automate response not reflecting in network tools or Power Pages
    The response from Power Pages calling a flow would not appear in DevTools as the response is sent back to Power Pages not to your client, Power Pages decides what to do with the response.
    What functionality is it performing for Power Pages? What did you expect to see in Power Pages?
  • ronaldwalcott Profile Picture
    3,810 on at
    Power Automate response not reflecting in network tools or Power Pages
    Not sure why my replies are disappearing.
     
    Testing this again.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics