You need to sign in to do that
Don't have an account?
sanjusfdc
Delete leads for particular user
Hello all,
How we can delete all Leads in our database that have the Lead Owner 'xyz'. I tried based on ownerId but it didnt work. can't we lookup field(ownerId) in where condition under Query.
Select id from Lead where OwnerId = '2F0050Y000000ZAbc'
Please guide me if I am wrong.
Thanks in advance.
How we can delete all Leads in our database that have the Lead Owner 'xyz'. I tried based on ownerId but it didnt work. can't we lookup field(ownerId) in where condition under Query.
Select id from Lead where OwnerId = '2F0050Y000000ZAbc'
Please guide me if I am wrong.
Thanks in advance.
User Id will start with 005 and you need to remove the 2F from the userId.
try with below in developer console, announumos window.
If this helps, Please mark it as best answer.
Thanks!!