Skip to content

Instantly share code, notes, and snippets.

View kristinemaimai's full-sized avatar
🤡
Focusing

Kristine Ann Mayola kristinemaimai

🤡
Focusing
View GitHub Profile
@mannharleen
mannharleen / DailyLeadProcessor.cls
Created November 3, 2016 15:00
Salesforce trailhead - Asynchronous Apex Scheduling Jobs Using the Apex Scheduler
public class DailyLeadProcessor implements schedulable{
public void execute(schedulableContext sc) {
List<lead> l_lst_new = new List<lead>();
List<lead> l_lst = new List<lead>([select id, leadsource from lead where leadsource = null]);
for(lead l : l_lst) {
l.leadsource = 'Dreamforce';
l_lst_new.add(l);
}
update l_lst_new;
@tyoshikawa1106
tyoshikawa1106 / force:navigateToRelatedList.js
Created March 15, 2015 09:31
force:navigateToRelatedList sample code
gotoRelatedList : function (component, event, helper) {
var relatedListEvent = $A.get("e.force:navigateToRelatedList");
relatedListEvent.setParams({
"relatedListId": "Cases",
"parentRecordId": component.get("v.contact.Id")
});
relatedListEvent.fire();
}