Skip to content

Instantly share code, notes, and snippets.

@karanrajs
Last active December 6, 2015 05:00
Show Gist options
  • Save karanrajs/6da6b2cc7a1f45645b58 to your computer and use it in GitHub Desktop.
Save karanrajs/6da6b2cc7a1f45645b58 to your computer and use it in GitHub Desktop.
doInit : function(component, event, helper) {
var action = component.get("c.getRecentRecords");
var fields = component.get("v.fields");
action.setParams({
ObjectName : component.get("v.object"),
limits : component.get("v.limit"),
fieldstoget : fields.join()
});
action.setCallback(this,function(response){
// Logic to process the returned value
});
$A.enqueueAction(action);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment