![]() |
|---|
| Figure 1: Environment Variable Manager |
The Environment Variable Manager is a powerful PowerApps Component Framework (PCF) control that streamlines the visualization and management of environment variables within the Power Platform. This intuitive tool enables users to efficiently view and modify environment variables through an organized table interface.
-
Intuitive Table Interface
- View and edit environment variables through a clean, responsive table layout
- Direct in-line editing capabilities for seamless value updates
- Clear visual indicators for different data types and validation states
-
Smart Navigation
- Advanced pagination for handling large variable sets
- Quick-access controls for adjusting page size and navigation
- Single-click record opening in new browser tabs via Schema Name
-
Comprehensive Type Support
- String Environment Variables
- Number Environment Variables
- Boolean Environment Variables
- JSON Environment Variables
-
Powerful Search & Filter
- Real-time search across Schema Names and Display Names
- Type-based filtering for focused variable management
- Boolean value filtering for quick state analysis
- Dynamic sorting by modification date
- Enhanced Visual Feedback
- Context-rich tooltips for values and descriptions
- Clear modification timestamps for audit tracking
- Success notifications for value updates
- Validation feedback for data entry
Run the following commands to deploy the control:
pac auth create --url https://xyz.crm.dynamics.compac auth listpac auth select --index <index of the active profile>pac pcf push -pp <your publisher prefix>Once the Environment Variable Manager control has been deployed, follow these steps to add and use it within your Power Platform environment:
- Open your Power Apps environment
- Navigate to the desired app
- Click "Add Page" in the navigation
- Select "Add Navigation Link"
![]() |
|---|
| Figure 2: Add Control to App Navigation |
-
Insert the following URL, replacing the placeholders with your environment details:
https://<your-environment-url.com>/main.aspx?appid=<your-app-id>&pagetype=control&controlName=nl_novalogica.EnvironmentVariableManager&data={"notificationPosition": "<notification-position>"}Where
<notification-position>can be one of the following values:"top-right"(default)"bottom-right""top-center""bottom-center""top-left""bottom-left"
-
Click "Add" to insert the control
![]() |
|---|
| Figure 3: Add Control URL |
# Default top-right notifications
https://contoso.crm.dynamics.com/main.aspx?appid=12345678-1234-1234-1234-123456789012&pagetype=control&controlName=nl_novalogica.EnvironmentVariableManager&data={"notificationPosition": "top-right"}
# bottom-center notifications
https://contoso.crm.dynamics.com/main.aspx?appid=12345678-1234-1234-1234-123456789012&pagetype=control&controlName=nl_novalogica.EnvironmentVariableManager&data={"notificationPosition": "bottom-center"}
- Publish your app to make the changes live
![]() |
|---|
| Figure 4: Environment Variable Manager |
Notes:
- Replace
<your-environment-url.com>and<your-app-id>with your actual environment details before using the provided URLs. - If an invalid notification position is provided, the control will default to
top-right. - The
dataparameter must be a valid JSON string with thenotificationPositionproperty.
To integrate the Environment Variable Manager into your form, follow these steps:
- Open your solution in Power Apps
- Navigate to the entity where you want to add the control
- Create a new field with the following properties:
- Data Type: Multiple Lines of Text
- Display Name: Environment Variable Manager (or your preferred name)
- Schema Name: environmentvariablemanager (or your preferred schema name)
![]() |
|---|
| Figure 5: Column Configuration |
- Open the form editor for your entity
- Either:
- Create a new tab by clicking "Add Tab" in the form designer, or
- Select an existing tab where you want to place the control
- Add a new section to your chosen tab if needed
![]() |
|---|
| Figure 6: Form Configuration Example |
- With your field selected, navigate to the "Components" tab in the right panel
- Click "Get more components"
- In the components gallery, search for "Environment Variable Manager"
- Select the control from the search results
![]() |
|---|
| Figure 7: Add Control |
- Configure the control properties:
- Set the "Table Column"
- Set the "Notification Position" to your preferred location:
top-right(default)bottom-righttop-centerbottom-centertop-leftbottom-left
- Click "Done" to add the control
![]() |
|---|
| Figure 8: Control Configuration |
- Save your form changes
- Publish the customizations to make them available to users
![]() |
|---|
| Figure 9: Environment Variable Manager |
Note: If no notification position is specified, the control will default to top-right positioning.
Contributions to improve or enhance this control are welcome. If you encounter issues or have feature requests, please create an issue or submit a pull request in the repository.
This project is licensed under the MIT License - see the LICENSE file for details.








