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.
🔍 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
source