You need to sign in to do that
Don't have an account?
Roshan 10
Illegal assignment from List<Account> to List<Id>
List<Id> accountIds = [Select Id from Account];
Run the above code in Execute Anonymous window and I am receiving the above error.
Can you please help me understand why this error is occuring or how I can overcome this error
Run the above code in Execute Anonymous window and I am receiving the above error.
Can you please help me understand why this error is occuring or how I can overcome this error
Please update your code like below
IF you want id only
Let us know if this will help you