Created
December 4, 2023 09:01
-
-
Save burlistic/260b320991ef1e9b02cc6d4782084a0f to your computer and use it in GitHub Desktop.
APEX Salesforce Insert Account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AccountHandler { | |
public static Account insertNewAccount(String accName){ | |
if(accName == '') | |
{ | |
return null; | |
} | |
Account acct = new Account(Name=accName); | |
insert acct; | |
return acct; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment