This video is part of Power Pages Tutorial series.
Video explains how cloud flows can be integrated and called from Power Pages using Javascript on HTML pages.
Please watch full video to under step by step process.
Sample JS call
-------------------
document.getElementById("calltoactionbutton").addEventListener("click", function (event) {
event.preventDefault(); // Prevent form submission
var _url = "/_api/cloudflow/v1.0/trigger/e2c70f34-cd6c-ef11-a670-000d3a1134ed";
var data = {};
var payload = {};
payload.eventData = JSON.stringify(data);
shell
.ajaxSafePost({
type: "POST",
url: _url,
data: payload
})
.done(function (response) {
const result = JSON.parse(response);
console.log(result);
})
.fail(function () {
alert("failed");
});
});
Watch video Power Pages (Part2)- How to integrate & Run Cloud Flows with Power Pages online without registration, duration hours minute second in high quality. This video was added by user M365 Tech Help 08 September 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 17 once and liked it people.