Last active
July 23, 2018 06:49
-
-
Save amitkumarRoy/16e715e95e704521a1524bde73fc7d9d 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
({ | |
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