You need to sign in to do that
Don't have an account?
Vladimir Bessonov
how to find record by record id in lookup field
I am struggling with how to search with record id in lookup field?
it is wastful to create extra field for the name and have auto enumaration for name
I found an option to change search layout - add some other field there, but it still looks only for name ? is there any workaround? to me Record is explicit enough to find the record.
it is wastful to create extra field for the name and have auto enumaration for name
I found an option to change search layout - add some other field there, but it still looks only for name ? is there any workaround? to me Record is explicit enough to find the record.
Can you kindly provide more detail on this ?
You can query your contact using accountId, Here AccountId Field is a lookup field for Contact.
Suppose we have an 'accId' variable that holds the Account Id of Account 'XYZ'.
Then You can Search Contact related to XYZ Account like follows
List<Contact> conList = [ Select Id, LastName, email, AccountId from Contact where AccountId = :accId] //here accId hold the record Id of XYZ Account.
If you find your Solution then mark it as the best answer.
Thanks and Regards
Suraj Tripathi.
if you are using Standard lookup then you can only search by name, if you want to search with Id then you need to create custom ligghtning component or VF page
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh