Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Using RetrieveEnvironmentVariableSecretValue from custom code

(1) ShareShare
ReportReport
Posted on by 36

Hello experts!
I would like to use Dataverse Environment Variables stored in Azure Key Vault to store secure information used by our Dynamics 365 custom code. I need to access mentioned values inside Dataverse plugins and custom app which connect to Dataverse with AppId/ClientSecret.


Everything seems to be working ok right now. However when I take a look on the Microsoft documentation of RetrieveEnvironmentVariableSecretValue Action - I can see the following sentence there:

 

Retrieves an environment variable secret value. This API is limited to being called within a Power Automate Flow and cannot be called directly in your code.

 

So... I'm confused what should I do right now. Am I allowed to use mentioned API from my plugins and custom app? Right now everything works pretty fine however I'm worry that Microsoft will block access to this specific request in the future and my code stop working correctly.

 

Any ideas?

  • kalluu91 Profile Picture
    32 on at
    Re: Using RetrieveEnvironmentVariableSecretValue from custom code

    Hello Peter,

     

    I have the same question too.

    Did you have any responses from MS team?

     

    Thanks,

    Kim Anh

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 72 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

Overall leaderboard