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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Calling a flow from cu...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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!
Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,005

#2
Valantis Profile Picture

Valantis 825

#3
Haque Profile Picture

Haque 619

Last 30 days Overall leaderboard