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 Automate / HTML Get Flow for PHP ...
Power Automate
Unanswered

HTML Get Flow for PHP Form Submission

(0) ShareShare
ReportReport
Posted on by 11

I am working on a flow that will follow a URL (sent via email) to a PHP webpage with data in a table that is easily extracted with the HTML Get method, however... The URL actually links to a PHP web form in the below format which then redirects to the actual data upon submission. Any help to follow this redirect/submission to get the HTML from the subsequent page? I've tried to gather the HTML from the web form and use the HTML Post method with no luck (that returns only the default page HTML with no actual data).

 

The various field names and values clearly identify the record that is being retrieved.

 

<html>
<head>
<title>Redirect</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> 
<body>
please wait...
<form name="form1" action="show.php" method="post">
	<input type="hidden" name="..." value="..." />
	<input type="hidden" name="..." value="..." />
	<input type="hidden" name="..." value="..." />
	<input type="hidden" name="..." value="..." />
	<input type="hidden" name="..." value="..." /> 
	<input type="hidden" name="..." value="..." />
 <input type="hidden" name="..." value="..." />
 <input type="hidden" name="..." value="..." />
	<input type="hidden" name="..." value="..." /> 
	<input type="hidden" name="..." value="..." /> 
	<input type="hidden" name="..." value="..." />
 <input type="hidden" name="..." value="..." /> 
 <input type="hidden" name="..." value="..." /> 
</form>
</body></html>
<script language="javascript" type="text/javascript">
document.form1.submit();
</script>

 

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    oh excelent example @rtopping  what you need is to create a php fuction that receibe as parameter the link of what you want then use HTTP action to send that url as the methot you fefine like POST, or GET

  • rtopping Profile Picture
    11 on at

    @ChristianAbata I don't quite understand your solution. Are you saying to add a php function into the body of an HTML post method?

  • Verified answer
    rtopping Profile Picture
    11 on at

    Here's the solution...

     

    You have to initiate an HTML Post Method, with the URL = the action PHP, in this case "show.php". The body of the HTML Post Method needs to be in the following structure:

     

    {
    	"$content-type": "multipart/form-data",
    	"$multipart": [
    		{
    			"headers": {
    				"Content-Disposition": "form-data; name=\"name1\""
    			},
    			"body": "value1"
    		},
    		{
    			"headers": {
    				"Content-Disposition": "form-data; name=\"name2\""
    			},
    			"body": "value2"
    		}
    	]
    }

     

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard