Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Create complex custom view - Dynamics CRM 2016

Posted on by Microsoft Employee

Hi all,

I have an entity named "GED" whitch have an attribute "new_levelged", and every user of the system has its new_levelged too,

I want create a view that displays only GED records whitch have GED.new_levelged <= systemuser.new_levelged,

How to do that in Dynamics CRM 2016 ? Can I do this with fetchxml ?

Thank you all :)

*This post is locked for comments

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Create complex custom view - Dynamics CRM 2016

    Hi Soumia,

     you can't compare fields in the fetchXml, so the short answer is, likely, "NO".. at least not with what CRM gives you out of the box.

     If you don't mind doing some plugin development, you might use a pre-retrievemultiple plugin:

    - First, you would create a view where you would use some generic condition: new_levelged <= -100

    - In the plugin, you would replace that -100 with the actual value you'll get from the current user record

     There is an example of pre-retrieve multiple plugin here:

    nishantrana.me/.../plugin-on-retrieve-multiple-in-crm-2015

     Once you have access to the "QueryExpression", you can look at the conditions in that query and modify them

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans