I have 2 objects (Account and case), where Case record will be created from an external source which passes account number as a input, Based on the account number I need to capture Account ID and assocciate the record. Can you please suggest how to go forward for this requirement?
Asked
Active
Viewed 2,354 times
0
-
What have you tried? Where are you stuck? – David Reed Nov 26 '21 at 16:19
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Dec 01 '21 at 21:55
1 Answers
0
As per your requirement, you can use the following SOQL query.
String accountNumber = 'test23232';
List<Account> account_List = [SELECT Id,Name,AccountNumber FROM Account WHERE AccountNumber =:accountNumber];

General Grievance
- 4,555
- 31
- 31
- 45

Rajat Jaiswal
- 76
- 4