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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Getting error while calling RetrieveEnvironmentVariableSecretValue web api method

(2) ShareShare
ReportReport
Posted on by 7

Hello everyone,

I am getting strange error "Access Denied" while calling RetrieveEnvironmentVariableSecretValue request from Javascript and C# backend code. Same unbound action works fine from Power Automate flow. This same API call was working couple of days back so not sure what may be the issue here.

Does anyone face the same issue in past ?

Thanks,

Mahesh Ghori

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Would you please check the Security role assigned to the user under which Api/backend code is getting executed ?

  • alubbe7 Profile Picture
    10 on at

    Hi,

    We have the exact same problem. We are calling RetrieveEnvironmentVariableSecretValue from within a React PCF app as well as a C# Plug-In, both suddenly resulting in 403: Access Denied.

    Our config has not changed. What could the problem be?

  • DGA205 Profile Picture
    61 on at

    We have the same problem, suddenly stoped to work.

  • Suggested answer
    meelamri Profile Picture
    13,218 User Group Leader on at

    Hi, 

    Based on current docs. This API is limited to being called within a Power Automate Flow and cannot be called directly in your code. Please refer to the following docs.

  • DGA205 Profile Picture
    61 on at

    Thanks you Mehdi.

    Until today it was working from plugins.

    It limitation has changed recently?

  • alubbe7 Profile Picture
    10 on at

    They changed the functionality without warning or informing users. They updated the docs to state that any calls from code to RetrieveEnvironmentVariableSecretValue is not possible.

  • Suggested answer
    Eddy1313 Profile Picture
    Microsoft Employee on at
     
    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 53 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans