function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
In the Anonymous window create Account like this -
Account myAcc = Account();
myAcc.Name = 'TestAcc';
Insert myAcc;
Set mandatory fields if required.
Please let me know if thisis helpful.
Regards,
Shashi
All Answers
In the Anonymous window create Account like this -
Account myAcc = Account();
myAcc.Name = 'TestAcc';
Insert myAcc;
Set mandatory fields if required.
Please let me know if thisis helpful.
Regards,
Shashi
yes it is possible to Create account from apex code.
You can Create a record in the Account Object in this way:
Account acc = new Account();
acc.Name = 'Test Account';
Insert acc;
Set mandatory fields if required.
if you want to know full description for all objects then Please go through this link:
https://anshsupportengineer.blogspot.com/2022/12/insert-record-to-object-in-salesforce.html
let me know if this help you.
Happy to help You!
Thanks,
Anshul