#051 BC IN-CLIENT PAGE SCRIPTING
The latest version of Dynamics 365 Business Central introduces a new great feature: the Page Script tool. It allows to easily record and playback actions, such as opening pages or entering data, and saving the recording to share it with others for future playback.
A significant use case for the tool is to capture and run user acceptance tests, which is also the primary focus for this release phase.
Start the tool
In the web client, the page scripting tool is accessed from the Settings menu.
The Page Scripting action only appears if you have record or playback permission to use the tool.
The Page Scripting panel appears on the right side, prompting you to choose between initiating a new recording or opening an existing one for inspection or playback.
Record
The page scripting tool records your on-screen interactions and the corresponding actions, such as opening or closing pages, making selections, entering data.
While recording, you have the option to remove the last captured step.
Is it possible to stop and restart the recording at any time. It is also possible to modify the properties during the recording or after it’s finished.
Playback
Select the Play button on the toolbar to playback a recording. You can use the available navigation buttons, but once the action is executed, you’ll need to manually undo any changes.
After execution, you can verify if the execution was successful.
Note: The screen where you are positioned when you record the script and when you execute it is important. Ideally, it should match at the beginning to minimize potential errors.
Save a Recording
You can save the recording from the toolbar. This creates a YAML file that you can download, share, edit, and reopen for playback.