Migrate Dataverse Data Between Environments Using the Data Migration Utility
Using Visual Studio Code with Power Pages using the Power Platform Tools Extension
In this video, Brian Knight from Pragmatic Works demonstrates how to elevate Power Platform development skills by integrating Visual Studio Code (VS Code) into the workflow. He explains how this free Microsoft tool allows users to access, edit, and manage the underlying code of Power Apps and Power Pages projects, enabling more efficient bulk updates and advanced customization.
Introduction to Visual Studio Code for Power Platform
Brian Knight begins by introducing Visual Studio Code as a powerful and free development environment provided by Microsoft. Unlike traditional interfaces within Power Platform, VS Code allows developers and analysts to interact directly with the underlying code of their applications.
This capability is especially useful for:
- Making bulk changes across applications
- Editing HTML and YAML configurations in one place
- Improving efficiency with advanced editing tools like IntelliSense
Why Use VS Code with Power Platform?
Brian highlights several key advantages of using Visual Studio Code:
- Bulk Editing: Easily replace elements such as fonts, colors, or styles across the entire application.
- Code Visibility: Access the underlying HTML and Liquid code used in Power Pages.
- Improved Workflow: Avoid navigating multiple screens in the traditional interface.
- IntelliSense Support: Get real-time suggestions and auto-completion while coding.
Step-by-Step Setup Process
The video walks through a structured process to connect VS Code with a Power Platform environment. The steps include:
- Download and Install VS Code:
- Visit the official Microsoft website
- Select your operating system and install the tool
- Install Power Platform Tools Extension:
- Open VS Code and navigate to the Extensions panel
- Search for “Power Platform Tools”
- Install the official Microsoft extension
- Open Terminal and Prepare Workspace:
- Create or navigate to a project directory
- Use terminal commands to manage files and connections
- Connect to Power Platform Environment:
- Retrieve the Dataverse URL from Power Apps or Power Pages
- Authenticate using your Microsoft account
- Retrieve Portal List:
- Run commands to display available portals
- Copy the desired portal ID
- Download Portal Content:
- Specify a local folder path
- Download all portal files from Dataverse
Editing Power Pages in VS Code
After downloading the portal content, Brian demonstrates how to open the project folder in VS Code. Users can now:
- View all project files in one interface
- Edit HTML pages and configurations
- Work with Liquid code for dynamic content rendering
He emphasizes how much easier it is to edit content compared to the traditional Power Pages interface. Instead of navigating multiple screens, developers can update everything in a single editor.
Making Changes and Uploading Updates
Brian walks through an example of modifying a webpage:
- Edit the HTML or Liquid code in VS Code
- Save the changes locally
- Use terminal commands to upload updates back to the portal
Once uploaded, users can return to Power Pages and click the Sync button to reflect the updates in the live environment.
Benefits of This Approach
By integrating Visual Studio Code into the Power Platform workflow, users gain:
- Faster development and editing processes
- Greater control over application structure and design
- Enhanced productivity through automation and scripting
- A more developer-friendly environment
Conclusion
Brian Knight concludes that using Visual Studio Code with Power Platform significantly improves efficiency and flexibility. Whether making small edits or large-scale updates, this approach provides a streamlined and powerful way to manage Power Apps and Power Pages projects.
Pragmatic Works offers additional training, bootcamps, and hands-on learning opportunities for professionals looking to deepen their expertise in Power Platform and related Microsoft technologies.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power Platform and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.
Sign-up now and get instant access
ABOUT THE AUTHOR
SQL Server MVP and founder of Pragmatic Works. Brian has been working with SQL Server as a DBA and business intelligence professional since 1998. He has written more than 15 books on the topic and has spoken at dozens of conferences.
Free Community Plan
On-demand learning
Most Recent
- Power Automate Desktop: Get Form Responses into Excel
- Using Visual Studio Code with Power Pages using the Power Platform Tools Extension
- Azure Synapse Analytics: Provisioning ASA [Introduction to Azure Synapse Analytics Series - Ep. 2]
- Azure Synapse Analytics: Introduction [Introduction to Azure Synapse Analytics Series - Ep. 1]
private training

Leave a comment