Created
May 5, 2014 22:28
-
-
Save mwelburn/3ac0eb70c1ebd2f51257 to your computer and use it in GitHub Desktop.
Remote Object - Create Record
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
var activity = new RemoteObjectModel.Wellness_Activity__c(); | |
activity.set('Wellness_Goal__c', goal.Id); | |
activity.set('User__c', userId); | |
activity.create(function(error, result, event) { | |
if (error != null) { | |
alert(error); | |
} else { | |
alert('Activity logged successfully!'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment