0

I would like to create a variable called acc and to select a full account that is inside my accounts:

Something like :

Account acc = [select account from account where name='p2'];

That would save the full account where the name is equal to p2 inside the variable acc

Tiburce
  • 33
  • 1
  • 8
  • What do you mean by full account ? What exactly are you trying to do and what is the problem you are facing ? – Vijay Ganji Jul 26 '19 at 11:57
  • I am trying to do that https://salesforce.stackexchange.com/questions/271154/required-field-missing-account-current-object – Tiburce Jul 26 '19 at 11:58

1 Answers1

0

Normally in SQL you can do select * to select all fields. But in SOQL, you cannot do that. You should specify all fields.

salesforce-sas
  • 24,161
  • 5
  • 41
  • 78