You need to sign in to do that
Don't have an account?
Rohit Thakur 19
Is there any way to get owner.createdbyid on lead in SOQL
Select id, owner.createdbyid, Name from Lead
Error :No such column 'createdbyid' on entity 'Name'.
Error :No such column 'createdbyid' on entity 'Name'.
Try this one
Claudio
Try below query.
You cannot use 'owner.createdbyid' in your query try to check available fields in workbench.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
Can you please compare both the SOQL. I just need lead Owner Created by id in lead throug SOQL.
Is there any way to get owner.createdbyid on lead in SOQL
Select id,owner.createdbyid, CreatedById, createdby.name from Lead.
Error:No such column 'createdbyid' on entity 'Name'.
Select id,owner.createdbyid, CreatedById, createdby.name from Account.
Working Fine
Thanks ,
Rohit Thakur
it depends on your need.
If you want only the record owner and who create it, you can simply use:
or best this
This query don't work on Lead because Lead is particular object and for me the Owner is a particular instance "License Management App".
Use this for example
In other objects this query works fine, but always remember to focus on your need.
Claudio