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 Automate / Trigger Condition and ...
Power Automate
Answered

Trigger Condition and Environment Variables

(0) ShareShare
ReportReport
Posted on by 75

Is it possible for a trigger condition to access environment variables? I've tried a couple of times unsuccessfully. I feel like I have the syntax correct based on the function reference documentation. Wondering if anyone has any insight on this. Perhaps it's not possible yet?

EX: @equals(triggerOutputs()['headers']?['runKey'],parameters('VARIABLENAME'))

 

Flow is comprised of a request trigger, some data actions, then finally a response action. In powershell I am running a Invoke-RestMethod. I have validation that everything works with a hard coded value. Once I attempt using an environment variable I see this message...

 

Invoke-RestMethod: {"error":{"code":"InvalidTemplate","message":"The template validation failed: 'The workflow parameter 'VARIABLENAME' is not found.'."}}

 

I recently found this feature request as well.

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Enable-environment-variable-usage-in-triggers/idc-p/1386634#M27384

Categories:
I have the same question (0)
  • Verified answer
    fchopo Profile Picture
    8,003 Moderator on at

    Hi @robcaretta 

    Unfortunately, that's still not possible, although there's an idea in the Power Automate ideas: Enable environment variable usage in triggers - Power Platform Community (microsoft.com)

    Hope it helps!

    Ferran

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard