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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 45 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans