web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using RetrieveEnvironm...
Power Apps
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?

I have the same question (0)
  • kalluu91 Profile Picture
    39 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard