Skip to content

Instantly share code, notes, and snippets.

Avatar

BrightCloudNH

View GitHub Profile
@evandonovan
evandonovan / gist:1562280
Created Jan 4, 2012
Leads code for Round Robin Record Assignment
View gist:1562280
// leadsRoundRobin.trigger:
trigger leadRoundRobin on Lead (before insert, before update) {
//
//Check if assignment owner has changed
//
Map<Integer,Id> queueIds = new Map<Integer,Id>(); //Trigger index --> Queue ID
Integer idx = 0;
for (Lead l : Trigger.new)
You can’t perform that action at this time.