You need to sign in to do that
Don't have an account?
Tarun Mukhia
Stuck at Trailhead Hands On - Need Help
Hi,
I am suck at this. Can someone help?
The Apex class must be called 'AccountHandler' and be in the public scope.
The Apex class must have a public static method called 'insertNewAccount'.
The 'insertNewAccount' method must accept an incoming string as a parameter, name the account after the parameter, insert it into the system and then return the account record.
The 'insertNewAccount' method must also accept an empty string, catch the failed DML and return null.
Check challenge
Thanks
Tarun
I am suck at this. Can someone help?
The Apex class must be called 'AccountHandler' and be in the public scope.
The Apex class must have a public static method called 'insertNewAccount'.
The 'insertNewAccount' method must accept an incoming string as a parameter, name the account after the parameter, insert it into the system and then return the account record.
The 'insertNewAccount' method must also accept an empty string, catch the failed DML and return null.
Check challenge
Thanks
Tarun
May I suggest you please give a try with below piece of code: Hope this helps.
Kindly mark this as solved if it's resolved.
Thanks,
Nagendra