0

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?

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Raghu
  • 1
  • 1
  • 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 Answers1

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