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! It's time to submit your entry. Live now!
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"
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |