Skip to content

Instantly share code, notes, and snippets.

@amitkumarRoy
Last active July 23, 2018 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitkumarRoy/16e715e95e704521a1524bde73fc7d9d to your computer and use it in GitHub Desktop.
Save amitkumarRoy/16e715e95e704521a1524bde73fc7d9d to your computer and use it in GitHub Desktop.
({
updateCompanyStatus : function( cmp, event, helper ) {
var actionAPI = cmp.find("quickActionAPI");
var fields = { Comapny_Status__c: {value:false}};
var args = {actionName: "SimplusLab__c.UpdateCompanyStatus", entityName: "SimplusLab__c", targetFields: fields};
actionAPI.setActionFieldValues(args).then(function(){
actionAPI.invokeAction(args);
}).catch(function(e){
console.error(e.errors);
});
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment