I have entered data into fields using the Skuid UI, and instead of using the Skuid Save button I would like to use a custom snippet to save and get the Id that is created, I tried the below piece of code but it didn’t work, can anyone help, thanks
var params = arguments[0],
$ = skuid.$;
//get models New Quote Model to save
var QuoteWizardStep3Model = skuid.model.getModel(‘QuoteWizardStep3’);
skuid.model.save([
QuoteWizardStep3Model
],{callback: function(result){
if (result.totalsuccess){
r = m.getFirstRow();
alert('New Quote Id: ’ + r.Id); // should be a real SF Id now
}
else {
// There was a problem. Let’s see what went wrong.
alert('Error: ’ + result.insertResults[0]);
console.log(result.insertResults[0]);
}
}});
Question
Save model using Snippet
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

