Hi @JLKM ,
I do not think so custom page is required here. you can trigger 'power automate' from js using the below code. Use an HTTP Request trigger on your 'power automate'. you can pass parameters also.
function triggrFlow() {
var flowUrl = "https://prod-17.australiasoutheast.logic.azure.com:443/work";
var input = JSON.stringify({
"Id": donationId.replace("{", "").replace("}", ""),
"UserId": userId.replace("{", "").replace("}", "")
});
var req = new XMLHttpRequest();
req.open("POST", flowUrl, true);
req.setRequestHeader('Content-Type', 'application/json');
req.send(input);
}
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Let me know if I can provide you with more details.
Thanks
Regards,
Abdul Wahab
Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
Direct/WhatsApp:+923323281237
E-mail: abdulwahabubit@outlook.com
Skype: abdul.wahabubit
Linkedin: https://www.linkedin.com/in/abdul-wahab-a5b8b011a/