Created
April 9, 2019 11:12
-
-
Save pranayjswl007/c5bec83bc2ff3b0c905edd9ecb3b34ae to your computer and use it in GitHub Desktop.
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
createRecord(event ){ | |
let newContact = {FirstName : 'Pikachu' ,LastName : 'Raichu'}; | |
createMyContact({con : newContact}).then((resp)=>{ | |
this.recordId = resp.Id; //this will auto call wireMethod/ | |
}); | |
} |
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
@AuraEnabled | |
public static contact createContact(Contact con){ | |
insert con; | |
return con; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment