Use this link to share with your colleagues:
Setting Up Secondary or Seasonal Addresses: https://help.pm.leapevent.tech/a/829710
If you've got patrons with summer and winter homes, this article is about to make your life a whole lot easier. Today, we'll show you how to set up a Primary and Secondary address on an Account, plus add dates that automatically tell the system which address to use for a mailing. To configure seasonal addresses, you'll:
1. Rename the Address Fields
"Billing Address" and "Shipping Address" are the two default address field groups on Accounts. These don't really make sense in this situation, so in this part, we'll rename them to "Primary" and "Secondary"
2. Create fields to record the "Begin" and "End" dates for the Secondary Address
In this part, we'll create "Begin" and "End" date fields so you can indicate when to send direct mail to an Account's secondary address, and when to send it to the primary address.
The following fields we're about to create are text fields so that the system doesn't have to update the year value annually. In order for these fields to work properly in the following formulas, the dates must be recorded in MM/DD format. Failure to record the dates in this format will throw a wrench into the Current Address formula we'll make next!
"Secondary Address Begin Date (MM/DD)" field
4. Fill in the Following information
- Field Label: Secondary Address Begin Date (MM/DD)
- Length: 10 will do
- Field Name: This auto-populates from the Field Label
- Description: Give the field a helpful description, including your initials and the date it was created
- Help Text: Give the field some help text - "Use MM/DD Format for this field"
- Click "Next" when you're done
"Secondary Address End Date (MM/DD)" field
2. Fill in the following information:
- Field Label: Secondary Address End Date (MM/DD)
- Length: 10 will do
- Field Name: This auto-populates from the Field Label
- Description: Give the field a helpful description, including your initials and the date it was created
- Help Text: Give the field some help text - "Use MM/DD Format for this field"
- Click "Next" when you're done
3. Create "Current Address" Fields
Now, we're ready to tie it all together. We'll create a series of Current Address formula fields that'll determine the current address of an Account based on the Secondary Address Begin and End Date fields we just created. Use the Current Address fields in reports when you prepare direct mail campaigns!
3.4. Copy the following formula and paste it into the Formula box
IF(ISBLANK( Secondary_Address_Begin_Date_MM_DD__c ) ,( BillingStreet & BR() & BillingCity & ", " & BillingState & " " & BillingPostalCode & BR()& BillingCountry ),
IF(
AND(TODAY() >=
IF(TODAY() > DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
IF(VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)) > VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),
DATE(YEAR(TODAY())+1,VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2)))),
IF(VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)) > VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY())-1,VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2)))))
,TODAY () <
IF(TODAY() > DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY())+1,VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))))
),
( ShippingStreet & BR() & ShippingCity & ", " & ShippingState & " " &ShippingPostalCode & BR() & ShippingCountry) ,
( BillingStreet & BR() & BillingCity & ", " & BillingState & " " & BillingPostalCode & BR()& BillingCountry )
))
3.10. Copy the following formula text and paste it into the formula editor
IF(ISBLANK( Secondary_Address_Begin_Date_MM_DD__c ) ,( BillingStreet ),
IF(
AND(TODAY() >=
IF(TODAY() > DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
IF(VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)) > VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),
DATE(YEAR(TODAY())+1,VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2)))),
IF(VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)) > VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY())-1,VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2)))))
,TODAY () <
IF(TODAY() > DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY())+1,VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))))
),
( ShippingStreet ) ,
( BillingStreet )
))
3.16. Copy the following formula and paste it into the formula editor
IF(ISBLANK( Secondary_Address_Begin_Date_MM_DD__c ) ,( BillingCity ),
IF(
AND(TODAY() >=
IF(TODAY() > DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
IF(VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)) > VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),
DATE(YEAR(TODAY())+1,VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2)))),
IF(VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)) > VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY())-1,VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2)))))
,TODAY () <
IF(TODAY() > DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY())+1,VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))))
),
( ShippingCity) ,
( BillingCity )
))
3.22. Copy the following formula and paste it into the formula editor
IF(ISBLANK( Secondary_Address_Begin_Date_MM_DD__c ) ,( BillingState ),
IF(
AND(TODAY() >=
IF(TODAY() > DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
IF(VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)) > VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),
DATE(YEAR(TODAY())+1,VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2)))),
IF(VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)) > VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY())-1,VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2)))))
,TODAY () <
IF(TODAY() > DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY())+1,VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))))
),
( ShippingState) ,
( BillingState)
))
This next field is the last one you'll have to make for this project - Promise!
3.28. Copy the following formula and paste it into the formula editor
IF(ISBLANK( Secondary_Address_Begin_Date_MM_DD__c ) ,( BillingPostalCode ),
IF(
AND(TODAY() >=
IF(TODAY() > DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
IF(VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)) > VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),
DATE(YEAR(TODAY())+1,VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2)))),
IF(VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)) > VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY())-1,VALUE(LEFT(Secondary_Address_Begin_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_Begin_Date_MM_DD__c, 2)))))
,TODAY () <
IF(TODAY() > DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY())+1,VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))),
DATE(YEAR(TODAY()),VALUE(LEFT(Secondary_Address_End_Date_MM_DD__c, 2)),VALUE(RIGHT(Secondary_Address_End_Date_MM_DD__c, 2))))
),
( ShippingPostalCode) ,
( BillingPostalCode )
))