Skip to content

Instantly share code, notes, and snippets.

Avatar

BrightCloudNH

View GitHub Profile
View gist:6779008
// 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.