Created
September 30, 2014 20:13
-
-
Save keithmancuso/24ce1eefa8269c01353a to your computer and use it in GitHub Desktop.
Salesforce Contact Event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function init() | |
{ | |
craft()->users->onActivateUser = function(Event $event) { | |
$user = $event->params['user']; | |
// check salesforce for contact with that email address | |
// if exists, get contact ID and save it on user | |
// if doesnt exist create contact and account (using organization name) and save contactID on user | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment