Skip to content

Instantly share code, notes, and snippets.

View meighan's full-sized avatar
☁️

Meighan Brodkey meighan

☁️
View GitHub Profile
@meighan
meighan / LeadHandler.cls
Created September 10, 2016 10:17
LeadTrigger & LeadHandler for City State auto-pop from PostalCode on Salesforce Leads
public with sharing class LeadHandler {
private static boolean isTrigger = false; // Used to prevent infinite loops
public class leadException extends Exception {}
/* format from ziptasticapi.com:
{"country":"US","state":"CA","city":"SAN JOSE"}
*/
// Format returned by ziptastic API
public class ziptasticReturn {
@meighan
meighan / New_Territory.txt
Last active August 29, 2015 14:26
Salesforce Territory Model custom button for a New Territory
/0MI/e?parent=000000000000000&territoryModelId={!Territory2Model.Id}
&retURL=/ui/setup/territory2/Territory2ViewPage?territoryModelId={!Territory2Model.Id}
&setupid=Territory2Models