Model Driven Power Apps: Pass Multiple Parameters from FORM to JavaScript
Model-Driven App
Sep 29, 2023 1:30 PM

Model Driven Power Apps: Pass Multiple Parameters from FORM to JavaScript

by HubSite 365 about Softchief Learn

Learn how to take advantage of your business data with Microsoft Dynamics 365 & Power Platform & Cross Technologies. My name is Sanjaya Prakash Pradhan and I am a Microsoft Certified Trainer (MCT) and

Citizen DeveloperModel-Driven AppLearning Selection

Master Dynamics 365 CRM with our guide on transferring multiple parameters from FORM to JavaScript in Model Driven Power Apps.

The video "Passing Multiple Parameters from FORM to JavaScript in Model Driven Power Apps", by Softchief Learn, dives into the complexities of Dynamics 365 Customer Engagement CRM. It primarily discusses client scripting in model-driven apps using JavaScript as a means of applying custom business logic and controlling what data is displayed on a form.

In the video, it is pointed out that while business rules do offer a way for those without a knowledge of JavaScript to apply business logic in forms, client scripting using client API object models is a more powerful option for extending the behavior of the application and enabling automation in the client if the business requirement cannot be achieved using a business rule.

The tutorial also explains how a form in model-driven apps can contain items such as columns, a quick form, or a grid. Events occur in model-driven apps forms whenever a form loads, data is changed in a column or an item within the form, or data is saved in a form. JavaScript code can be attached to "react" to these events so that the code gets executed when the event occurs on the form.

Main Topic Overview

The main focus of the video is on the use of JavaScript for building custom business procedures in model-driven apps within the Dynamics 365 Customer Engagement CRM. Being able to pass multiple parameters from form to JavaScript within these apps, as discussed in the video, is key to extending the application's behavior and enabling automation. This functionality provides much-needed versatility, especially in situations where the business logic demands cannot be provided by business rules alone.

Learn about Passing Multiple Parameters from FORM to JavaScript in Model Driven Power Apps

The YouTube video explains the various steps and processes of passing multiple parameters from a form to JavaScript in Model Driven Power Apps, specifically focusing on Dynamics 365 Customer Engagement CRM. The video is based on a business use case and employs client scripting to demonstrate the application of custom business process logic for displaying data on a form in a model-driven app.


  • It emphasizes that while client scripting provides a robust method for implementing custom business logic, it shouldn't be the first choice for this task in model-driven app forms.
  • It advises that business rules, which are accessible to individuals unfamiliar with JavaScript or non-developers, are a more suitable primary choice for applying business process logic to a form.
  • The video also demonstrates that the business rule designer can be found within the Data > Tables > [table_name] area on make.powerapps.com and guides viewers to the Business rules tab when viewing the table.
  • The video argues that in cases where a business requirement cannot be achieved using a business rule, the client-scripting and the client API object model provides a powerful alternative for extending the application's behavior and enabling client automation.
  • It also details that a form in model-driven apps can contain various items such as columns, a quick form, or a grid, and that an event occurs in the model-driven apps forms when a form loads, data is changed in a column or an item within the form, or data is saved in a form.
  • The video explains that developers can attach JavaScript code to "react" to these events, which allows the code to be executed when the respective event occurs on the form.
  • Model-driven apps provide a rich set of client APIs that allow interaction with form objects and events to control what and when to display on a form. This process is also discussed in the video.

To learn more about this topic, one can explore additional YouTube tutorials that delve deeper into the specifics of model-driven apps and client scripting. Additional training courses, such as Microsoft's Power Apps training, can provide a more in-depth and comprehensive understanding of the topic.

More links on about Passing Multiple Parameters from FORM to JavaScript in Model Driven Power Apps

Model Driven App Custom Pages, Passing multiple parameters
May 1, 2022 — Hello, I have built a custom page to compliment our Model App. This application launches from the Main form or from a project record within our model.
Pass multiple values to a web resource through the data ...
Nov 29, 2022 — The sample represents a technique to pass the additional values within a single parameter and then process them within your web resource.
Set column values using parameters passed to a form
Nov 29, 2022 — You can pass parameter values to the form to set column values using the Xrm.Navigation. openForm function. For example, see Example: Use Xrm.
Model-driven app form properties in Power Apps
Feb 14, 2022 — Use this parameters list to specify parameters this form should accept to support code that will pass data to the forms using a query string.
Call Custom Page with parameters from Model Driven App
Jul 25, 2022 — This blog guides you through, how to pass parameters from model-driven app to custom pages while opening custom page as a central dialog ...
Passing arguments to a model driven app in PowerApps
Jul 14, 2023 — I know parameters can be passed to a canvas app in PowerApps via URL for the app. Can anyone please guide me on how to do this for model driven ...
Back to Basics # 69: Usage of Parameters from Modern ...
Dec 31, 2022 — Introduction: During certain scenarios we must pass parameters from the modern command designer so that they can be used inside JavaScript.
How to pass an object from a model app driven ...
Oct 25, 2021 — According to the current documentation, we can pass a dataverse record as a parameter. This is still very beneficial for some scenarios.

Keywords

Microsoft Dynamics 365 JavaScript, Model Driven Power Apps development, Custom business process in Power Apps, Client-side scripting in Dynamics 365, PowerApps form data manipulation with JavaScript.