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 : eYOhWjkWtVMXVS8z8D+fEa
Power Automate - Using Flows
Unanswered

Calling a flow from custom button in portal and pass the inserted form field values by onclick event of submit button

Like (0) ShareShare
ReportReport
Posted on 20 Sep 2021 10:01:08 by

Hi!

I have a requirement where I need to pass inserted form field values by the onclick event of the submit button to a http Flow.

 

Since I need to create a validation based on inserted values - return it to the portal and display a custom message based on the outcome.

 

Could anyone assist me with the javascript function, I got this from another post:

 

function sendFlowRequest(formContext)
{
  var CJGuid = formContext.data.entity.getId();
  CJGuid = CJGuid.replace(/[{}]/g,"");
  parent.$.ajax
  ({
type: "POST",
url: "**FLOW URL HERE**",
contentType: 'application/json',
data: JSON.stringify({"CJGuid" : CJGuid}),
    success: function ()
    {
alert("success");
 
    }
});
}
 
How do I adapt the javascript to send the emailadress, first name & last name values of the form fields to the flow?
THANKS!

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading complete