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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard