menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Client-scr...
source image

Dev

1d

read

146

img
dot

Image Credit: Dev

Client-script in Model-driven apps: do it right from the start

  • Power Platform offers a 'No code/low code' approach for app development, but more complex logic often requires client scripts in Model-driven apps.
  • Building Model-driven apps involves extending forms with client scripts using JavaScript, TypeScript, PowerFx, and C#.
  • For beginners, Microsoft Learn provides a guide on using client scripts effectively in Power Platform.
  • Remember to add .js at the end of the client script resource for easier debugging.
  • Configure external dependencies as web resource dependencies for loading with the form.
  • Using TypeScript over JavaScript is recommended for better tooling and type safety, especially with Dataverse DevTools extension in Visual Studio Code.
  • Debugging client scripts locally can save time; Fiddler Auto Responder method is recommended for script web resource development.
  • Rebuild projects in build-dev mode for local testing and optimizing the final JavaScript file size.
  • Unit testing and automated testing are essential for stable codebases in Model-driven apps, with tools like xrm-mock and Power Apps Test Engine.
  • Ensure to clear cache when debugging scripts to avoid issues caused by cached JavaScript files.

Read Full Article

like

8 Likes

For uninterrupted reading, download the app