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 :
Service | Customer Service, Contact Center, Fie...
Answered

Filtering data based on Environment Variable

(0) ShareShare
ReportReport
Posted on by

Hello,

I have a FetchXML query in Power Automate Flow. The filter criteria includes Created On "Older than X Days" with a value of 7. We were informed this value might change based on the scenario. So, we had an idea of creating Environment Variable and modifying the value in there as per the requirements. However, I am not sure how to replace the value "7" with the Environment Variable value.

Any suggestion is very much appreciated.

Thank you

Harsha

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Harsha,

    Can you please be more specific on what issue do you experience? Like - it's not clear on how to get the Environment Variable value or how to put the value retrieved into FetchXml?

  • Verified answer
    Community Member Profile Picture
    on at

    a33ik  I magnified my issue in here. I simply added the environment variable in place of "7" and this worked. I was thinking in a more complicated way about the complications with the FetchXML query instead of simply updating it.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Yep. It should be as simple as.

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 23 Super User 2026 Season 1

#3
Encore Business Solutions Profile Picture

Encore Business Sol... 14

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans