You need to sign in to do that
Don't have an account?
Andreas Yannelos
SOQL Query getting data from LEAD and ACCOUNT
Hi!
I have the query below in the controller of one of my visualforce pages:
What I would like to do some kind of outer join to check if the Lead.Company field exists as a Account.Name so I can show this on the Visualforce page.
Any ideas on how to do this?
I have the query below in the controller of one of my visualforce pages:
SELECT Id, Name, Title, Company, Country, CreatedDate, Status FROM Lead WHERE Status='New' AND OwnerId= :UserInfo.getUserID() ORDER BY CreatedDate DESC
What I would like to do some kind of outer join to check if the Lead.Company field exists as a Account.Name so I can show this on the Visualforce page.
Any ideas on how to do this?
All Answers
Please try the following code:
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
Please follow the given below code with the help of these, you can solve your problem, it may be helpful to you.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha