Back to Browse

Trigger/Call PowerAutomate Flow fromJavaScript using a Custom Button on Dataverse Form

1.3K views
Aug 7, 2025
13:41

In this video, I’ll show you step-by-step how to call a Power Automate flow using JavaScript from a custom ribbon button in a Model-Driven App (Dynamics 365 CRM).   🔧 Whether you're a Dynamics 365 developer or Power Platform enthusiast, this is a practical and real-world example to enhance your automation skills.   We’ll start with a working demo, then walk through the requirement, create the Power Automate flow, write the JavaScript, and finally add everything to CRM — including real-time debugging and testing.   || link to upload image- https://srshaan.github.io/yt-image-upload/imgbb_uploader.html?k=7899c2656ef373ede23cdb6fad2aada9   please upload your image and then share the copied link in comment section   Link of code-https://github.com/SrShaan/JS-codes/blob/main/sendemailcustombutto  ||   🔍 What’s covered in this video:📌 Introduction and working demo   🔍 Explaining the use case: Send email from custom button   ⚙️ Creating Power Automate flow with HTTP trigger   🧠 Writing JavaScript to trigger flow   🌐 Adding JavaScript as a Web Resource   ➕ Creating a custom ribbon button   🧪 Testing in real-time   🐞 Debugging and fixing JavaScript errors   🔁 Updating the web resource and flow   🎯 Final working result     This video consists of: 00:00-00:54 Intro and demo            00:54-01:16 Requirement Explanation            01:16-04:15 Creating Power Automate Flow            04:15-07:56 JavaScript Code writing            07:56-08:42 Adding JS as WebResource            08:42-10:02 Adding custom Button on Main Form            10:02-10:59 Testing            10:59-11:32 Debugging JS            11:32-11:52 Updating the Webresource            11:52-12:38 Second Testing            12:38-13:11 Power Automate Flow Updation            13:11-13:40 conclusion #dynamics365 #crm #powerplatformwork #WordTemplate #d365crm #documentautomation #microsoftdynamics #crmtraining #js #javascript

Download

0 formats

No download links available.

Trigger/Call PowerAutomate Flow fromJavaScript using a Custom Button on Dataverse Form | NatokHD