Get Started with Accounts and Contacts challenge - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Zahar ZakharchenkoZahar Zakharchenko 

Get Started with Accounts and Contacts challenge

Hey Guys,

I am working on this challenge

Create an account with Account Name = 'Smith Enterprises', Type = 'Prospect', and Industry = 'Energy'.
The account should be a business account.

It seems very straight forward but I get an error at the end... It says that the account cannot be found .. Any tips on what I could possibly do wrong? Also, where do I choose the "business account" option?

Thanks for your help

 
Best Answer chosen by Nikitha (salesforce.com) 
sakshi nagpalsakshi nagpal
Follow this-:
https://www.youtube.com/watch?v=BZCO-kEC95s

All Answers

sakshi nagpalsakshi nagpal
Follow this-:
https://www.youtube.com/watch?v=BZCO-kEC95s
This was selected as the best answer
Carlos GarciaCarlos Garcia
If you want to create a new account you have to run this as anonymous Apex from the developer console:

Account newAccount = new Account();

newAccount.name = Smith Enterprises';
newAccount.Type = 'Prospect';
newAccount.Industry = 'Energy';
 
insert newAccount;

For your second question:
Salesforce automatically assigns a new Account as a Business Account by default.

So when you go to the Account tab and click New, you're creating a business Account right out of the box.