Contact__c
Contact__r
relationship toContact
object.Vivint_Employee__c
Vivint_Employee__r
relationship toVivint_Employee__c
object.Personalized_URL__c
Formula field that tacks
Username__c
onto the end of eitherhttps://referrals.vivintsolar.com/
orhttps://referrals.stage.vivintsolar.com/
Username__c
Unique text field
First_Name__c
Text field
Last_Name__c
Text field
Email__c
Email field
Default_Lead_Generator__c
Default_Lead_Generator__r
relationship toVivint_Employee__c
object.Default_Sales_Rep__c
Default_Sales_Rep__r
relationship toVivint_Employee__c
object.
- Create
Referrer__c
record for everyContact
- Default the
Username__c
field to the contact email. - Default
Default_Lead_Generator__c
andDefault_Sales_Rep__c
with sales rep fromOpportunity
- Default the
- Create
Referrer__c
record for everyVivint_Employee__c
that is not a Dealer- Default the
Username__c
field to the employeefirstname.lastname
(e.g.alex.ford
) - Default
Default_Lead_Generator__c
andDefault_Sales_Rep__c
with themselves. Circular relationship back to theVivint_Employee__c
thisReferrer__c
record is being created for.
- Default the
- Create
Referrer__c
record for everyVivint_Employee__c
that is a Dealer- Default the
Username__c
field to the dealer email address. - Default
Default_Lead_Generator__c
andDefault_Sales_Rep__c
with themselves. Circular relationship back to theVivint_Employee__c
thisReferrer__c
record is being created for.
- Default the
- Create a
Referrer__c
record for any customer Okta record whose email does not match aContact
record.- Populate
First_Name__c
,Last_Name__c
, andEmail__c
text fields. - Default
Username__c
field to customer Okta email.
- Populate
- Update
Username__c
fields for allReferrer__c
records that have already customized personal URLs in our Amigo CouchDB table.