Hi,
I am trying to do a relationship based on 1 field information.
I currently have 2 entities:
-Policy Numbers
-Insured Cars . To add an insured car I have used a look up field based to Policy Number, so that all insured cars are associated with Unique policy Number.
I have also created a new entity INSURED DRIVERS and what I want to do now is to add drivers that associate with policy numbers and insured cars. To add a driver I would like to select a Policy number and Choose a CAR related to Policy number.
I have managed to get the first part done, add driver on Policy number, but I am not sure how I could choose a related car associated to the Policy number.
Each driver needs to be assigned to a policy number and CAR.
Many THanks in advance
*This post is locked for comments
Yes, that is bug from CRM. What you can do as a fix is, write a java script which clears the Car lookup whenever Policy number changes. This way user has to select Associated Car everytime policy is changed
Hello,
I think you should relate your entity Driver to Insured Cars, the Driver will be an intermediate entity between InsuredCars and PolicyNum :
so you can use a lookup fields, but you should add Js Custom code to filter PolicyNum according to CAR.
Hope this will help !!
This worked . Many Thanks, one more question, What I have noticed is when I select policy Number then all related cars appears, which is good. But if I change the policy number ( lets say choose one by a mistake) the car remains in the field from previous Policy numbers.
Hi Rasi, You can do this with an out of the box feature of Related records filtering. Add a lookup of Policy Number and Cars on the form. In the properties of Cars lookup field, check the Related record filtering and select Only show records where Policy Numbers entity.
Here is the sample screenshot :
Hope this helps.
Thanks!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156