Case entity'sinin form load event'i edit edilir ve biter:
crmForm.all.customerid.setAttribute("lookuptypes", "2"); //2: Contact entity code
Siz değiştirmeden önce default kod:
crmForm.all.customerid.setAttribute("lookuptypes", "1,2"); //1: Account entity code
Yok, o hiç aklınızdan geçmesin, "o zaman lead'ler içinde case oluşturabiliriz" diyenleriniz için tokat tadında cevap:
crmForm.all.customerid.setAttribute("lookuptypes", "1,2,4"); //4: Lead entity code
derseniz, Evet lead'leri lookup'larda görürsünüz ancak sanmayın ki çalışacak.
Entity code'larını nasıl ögrenebilirim diyenler için gelsin:
http://[server]
Metadata'nın nimetleri bu linkten tüm entity,attribute,relations bilgilerine ulaşabilirsiniz.
Do you speak English, I don't:
I'm sure that you are also recieving weird requests from your clients. My client requested to restrict Customer field relation which is in Case(Incident) entity with only contact entity. You know normally it's related with contact and account entity. I said "OK" and applied this solution:
OnLoad event of case entity:
crmForm.all.customerid.setAttribute("lookuptypes", "2"); //2: Contact entity code
Before you update the code it was working like:
crmForm.all.customerid.setAttribute("lookuptypes", "1,2"); //1: Account entity code
No, you should not think about that "If I configure lookup I can create case for leads also".
crmForm.all.customerid.setAttribute("lookuptypes", "1,2,4"); //4: Lead entity code
You will able to see Lead records in customer lookup but don't think that you will able to create successfully.
For users who is asking "How to get entity codes?":
http://
You can get all entities, attributesi , relations etc.