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

Community site session details

Session Id :
Power Pages - Design & Build
Answered

How to pass parameters to a Power Automate cloud flow from Power Pages.

(0) ShareShare
ReportReport
Posted on by 180
Hello,
 
I created a flow from inside Power Pages (Setup->Flows).  I used the "When Power Pages calls a flow" trigger.
I created a text input named 'firstname'.
 
I use this safeAjax call to trigger the flow:
  webapi.safeAjax({
  type: "POST",
  url: "/_api/cloudflow/v1.0/trigger/<flow guid>",
  contentType: "application/json",
  processData: false,
  data: JSON.stringify({ firstname : "Doug" }),
  success: function (response) {
    console.log("✅ Flow response:", response);
  },
  error: function (xhr) {
    console.error("❌ Flow failed:", xhr.responseText);
  }
});
But the body is always empty.
I placed a compose with triggerBody(), another with triggerBody()?['firstname'].  Nothing.
 
Ideas?
 
Thanks,
Doug
Categories:
I have the same question (0)
  • dgray304 Profile Picture
    180 on at
    How to pass parameters to a Power Automate cloud flow from Power Pages.
    Fubar,
     
    Thanks, that did the trick.  
     
    Much obliged,
    Doug
     
    Note:  I took a look at the peek code of the 'When Power ... ' trigger, the names are 'text' then 'text_1'.
    {
        "kind": "PowerPages",
        "inputs": {
            "schema": {
                "type": "object",
                "properties": {
                    "text": {
                        "title": "firstname",
                        "type": "string",
                        "x-ms-dynamically-added": true,
                        "description": "Please enter your input",
                        "x-ms-content-hint": "TEXT"
                    },
                    "text_1": {
                        "title": "lastname",
                        "type": "string",
                        "x-ms-dynamically-added": true,
                        "description": "Please enter your input",
                        "x-ms-content-hint": "TEXT"
                    }
                },
                "required": [
                    "text",
                    "text_1"
                ]
            }
        },
        "metadata": {
            "operationMetadataId": "ee89bc11-76c1-48aa-a00e-6e06a2e4c8ac"
        }
    }
     
     
     
  • Verified answer
    Fubar Profile Picture
    8,131 Super User 2025 Season 2 on at
    How to pass parameters to a Power Automate cloud flow from Power Pages.
     
    You are missing the eventData element in the JSON.
     
    I use the following structure to create the payload:
    var data = {}; 				
    
    data["FlowInputNameHere"] = "your value here";
    
    var payload = {};
    payload.eventData = JSON.stringify(data);
    			
    and then your data line inside your SafeAjax     data: payload,
     
    The above is a variation of what is in the example in this link
     
     
    (also: FYI inside the Flow if you are manually working with the Inputs - rather than selecting them - they are not referenced by the Name you set but by a generic label, off the top of my head can't remember what it is but will be like text0, text1)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Pages

#1
Jon Unzueta Profile Picture

Jon Unzueta 87 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
Shafiuddin Profile Picture

Shafiuddin 45

Last 30 days Overall leaderboard

Featured topics