Posts

Showing posts with the label TypeScript

PL 400 : Create client-side scripts that target the Dataverse Web API (Apply business logic using client scripting)

Image
Dataverse empowers organizations to work with any type of data and any type of app, and use the data within it to gain insights and drive business action. As part of Microsoft Power Platform, Dataverse requires no or little code to be written, so it can easily be used by everyone from knowledge workers to professional developers. Knowing that it's built on Azure, organizations choosing Dataverse can be confident that it's globally available, compliant, scalable, and secure. Microsoft Dataverse “Common data service” is a cloud-based storage space that organizations can use to store business application data. Dataverse Web API is one of two web services that we can use to work with data, and table and column definitions in Dataverse. It provides a development experience that can be used across a wide variety of programming languages, platforms, and devices. Because Dataverse Web API is designed to be an open standard. We can write HTTP requests for specific operations or use thir...

PL 400: Register an event handler (Apply business logic using client scripting)

Image
In Power App model driven apps, JavaScript is used to perform actions in the form of scripts, ribbon commands, and web resources. Declarative business rules come with limits, so we can use JavaScript to implement custom business logic. In model driven app forms, client scripting provides an object model with methods for interacting with the form component. To use scripting features, form scripts must be uploaded as script web resources. For the execution of script methods, we need to use event handlers. An event handler is a callback method that operates asynchronously and handles input received in an event. Event : An event is an action that occurs as a result of a user or other sources. Event Handler : An event handler is a method that deals with events. Script web resources can be used to maintain libraries of client script functions that are written in either JavaScript or TypeScript and can be accessed within a model driven app form or from a command bar ribbon definition. Client ...

PL 400: create JavaScript or TypeScript code that targets the Client API object model (Apply business logic using client scripting)

Image
JavaScript is the major client script language which makes it user friendly and responsive to any static html/web pages. It is also abbreviated as JS. It is a lightweight and interpreted programming language designed for network centric applications. It is one of the major technologies of the World Wide Web, along with HTML and CSS. JavaScript is immortal. TypeScript is a strongly typed programming language that builds on JavaScript, in other words, it is a strict syntactic superset of JavaScript and is designed to transcompile the language applications to JavaScript. Typically, in Dynamics 365 CE/Model driven apps, JavaScript is used to perform actions such as forms, ribbon commands, and web resources. Client scripting allows us to use JavaScript in a Power App Model Driven App to implement custom business logic. It should be used as an alternative when declarative business rules do not meet the requirement. Following are the most common events for which we can register as  event ...