Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Is there a way to use environment variables inside the custom visual that I can access as
Hi @Anonymous,
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"