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 :
Finance | Project Operations, Human Resources, ...
Answered

how to override lookup with respect to enum value element.

(0) ShareShare
ReportReport
Posted on by 31
I have this requirement:
 
Firstly i have to extend base enum and add element named  / Transfer order/
Now i have to add lookup on the existing lookup for the transfer orders now because for every enum type the lookup is different now i want lookup for transfer order.
I have created lookup for transfer order but it is appearing on every enum type i wanted my lookup only for transfer order that i added on base enum.
 
This is the code that i write for override lookup:
 
 
 
 
By this code lookup is appearing on every enum
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,985 Most Valuable Professional on at
    Well, you're completely missing a condition saying that you want your custom logic only for transfer orders. But don't bother adding it, because the whole approach is wrong.
     
    The standard logic already supports the scenario. It uses the plugin framework to create a specific class implementing CaseIAssociation intrerface and calling its performLookup() method. You just need to implement such a class for transfer orders.
     
    For example, look at CustTransCaseAssociationProvider. Don't miss ExportMetadataAttribute - that's what tells the class factory which class should be used for a particular value CaseEntityType enum.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans