Prompt Share - Create Contact Controller #46
craigathon
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Prompt Asked in Einstein Sidebar
Create an apex class named ContactController with an @AuraEnabled Apex method called "createAccountAndContact" that collects the following fields as an object class named AccountContact:
existingAccountId
companyName
firstName
lastName
streetAddress
city
state
postalCode
email
phone
The AccountContact class should be defined in the class. If existingAccountId is null, create a new account.
The Result
Thoughts
Beta Was this translation helpful? Give feedback.
All reactions