You need to sign in to do that
Don't have an account?
Hariharan M 18
display all oppurtunities
display all oppurtunities,
in the below code am getting error, can anyone tell me how to fix it?
in the below code am getting error, can anyone tell me how to fix it?
FIELDS(ALL) works in the Developer Console ("Query" tab) and other APIs (REST, SOAP, etc), just not Apex. You can use FIELDS(STANDARD), but not either of the other two options while writing Apex. This is an Apex-only restriction to prevent blowing up heap limits.
Please find the same answer from stack exchange as well
https://salesforce.stackexchange.com/questions/340948/soql-fields-function-gives-error-even-with-limit
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
Try Below Code Please Mark It As Best Asnwer If It Helps
Thank You!