Salesforce
PDII · Question #285
Universal Containers uses a custom Lightning page to provide a mechanism to perform a step- by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into…
The correct answer is B. Perform the SOQL query as part of a for loop. See the full explanation below for the reasoning.
Question
Universal Containers uses a custom Lightning page to provide a mechanism to perform a step- by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into a text field, ERP_Number_c, that is then used in a query to find matching Accounts. A developer receives the exception 'SOQL query not selective enough'. Which step should be taken to resolve the issue?
Options
- AMark the ERP_Number_c field as an external ID.
- BPerform the SOQL query as part of a for loop.
- CMove the SOQL query to within an asynchronous process.
- DMark the ERP_Number_c field as required.
How the community answered
(36 responses)- A3% (1)
- B75% (27)
- C14% (5)
- D8% (3)
Community Discussion
No community discussion yet for this question.