You need to sign in to do that
Don't have an account?
vijay kumar k
can i edit or override the lookup list
suppose consider account and contact objects. in creation of contact their shows account lookup field ,press the lookup icon shows the all accounts list in new window.my question is it is possible to edit that list. Like that list shows who doesn't have contacts or who have less than some vale of recors(take 10),these names only display that list.By using this list only select one account and create a contact.
please help me this.
thanks in advance
please help me this.
thanks in advance
First you need to create a number field on account object to store count of contacts associated with it. You can do this by writing a trigger can refer the following code
Second create a lookup filter to display only accounts with number of contacts less than 10. Use Number_of_Contacts__c field created on account to compare count.
Lookup filter queries refer this link - https://resources.docs.salesforce.com/200/latest/en-us/sfdc/pdf/salesforce_filtered_lookups_cheatsheet.pdf
Let me know if u face any issue for the same
All Answers
First you need to create a number field on account object to store count of contacts associated with it. You can do this by writing a trigger can refer the following code
Second create a lookup filter to display only accounts with number of contacts less than 10. Use Number_of_Contacts__c field created on account to compare count.
Lookup filter queries refer this link - https://resources.docs.salesforce.com/200/latest/en-us/sfdc/pdf/salesforce_filtered_lookups_cheatsheet.pdf
Let me know if u face any issue for the same
thank you for clarify my dought ,i tried it and your replay is working successfully.
Regards, https://inedutor.com