Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Is there a way to use environment variables inside the custom visual that I can access as
Hi @DevForDay,
The default webpack configuration of powerbi-visuals-tools doesn't expose process.env, so if you want to set up something similar, you must create your webpack configuration using the powerbi-visuals-webpack-plugin. In this configuration, you could, for example, use webpack.DefinePlugin to define an object that passes these values from an appropriate .env file.
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Remember that Power BI Service has no concept of "environment variable"
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |