Explore Salesforce HEDA – Affiliations and Relationships
Handle Affiliations and Relationships using HEDA (HigherEd Architecture from Salesforce)
Out of need, Higher Ed customers have developed their own customized approach to manage constituent’s data in salesforce. While many institutions have done it successfully and have given a thoughtful structure to the solution, however others have struggled to build a structure that would scale and cater to various enterprise use cases.
The wide range of customized data architecture that existed in the HED market had created lot of confusion and frustration as customers seek to grow beyond their initial implementation and one solution did not cater to all the use cases.
That’s wherein HEDA was launched for Higher Ed to address some of the most common use cases and provide the necessary framework and essential data structure to foster institutional growth, innovation, and success with the Salesforce1 platform. HEDA does not solve every problem but rather encourages and anticipates end user configuration to be built on top of the HEDA framework.
One of most common business requirement in Higher Ed is handling constituent’s relationship and affiliations, leverage it for growth and innovation.
HEDA is entirely focussed on representing relationships throughout a student’s lifecycle.
Here in this blog we will see how HEDA can be used to handle various use cases related to Affiliations and Relationships.
Use Case 1 – Defining multiple Affiliations for a Contact and their associated Affiliation Type.
Affiliations (hed__Affiliation__c) object is used to manage various Affiliations between an Account and Contact.
- For each Affiliation, an Affiliation record should be created between the related Account and Contact.
- Affiliation Type is managed through Record Types on Affiliation object and is expected to be same as the Account Record Types.
- Account object comes by default with the below record types to categorize the data for the following types of Accounts –
- Academic Program
- Administrative
- Business Organization
- Educational Institution
- Household Account
- Sports Organization
- University Department
- Account object comes by default with the below record types to categorize the data for the following types of Accounts –
Note: Record Types can be edited or deleted as per customer’s requirement
- There is an additional Role picklist field which can be used to determine the role of the affiliated contact. The default values are Student, Prospect, Applicant, Faculty, Employee
Use Case 2 – Handling Primary Affiliations and direct links to the related Accounts
- Any Account can have a Primary Contact and it is driven thru the Affiliation object.
- While creating an Affiliation record, the contact can be set as the Primary Contact for the Affiliation Type.
- However, a contact cannot be a Primary Contact for two Accounts with the same Affiliation Type.
- It replaces the Primary relationship with the former Account.
- The Contact object comes by default with a set of managed and unmanaged fields as part of the HEDA bundle to store the Primary Affiliated Accounts
- The following are the fields –
- Primary Business Organization – Managed
- Primary Household – Managed
- Primary Academic Program – Unmanaged
- Primary Department – Unmanaged
- Primary Educational Institution – Unmanaged
- Primary Sports Organization – Unmanaged
- The mapping of Affiliation fields and Account Record Type (Affiliation Type) is mainted in ‘Affl Mappings’ Custom Settings.
- The following are the fields –
- New Affiliation Mappings can be edited or added thru the HEDA settings custom tab (image below) on the HEDA app or directly thru the Setup menu.
- Once a Primary Affiliation is created, the following key fields would be automatically populated on the Contact record
If a primary Affiliation of certain type exists, and another one of the same type is created, the first one would be made non-primary.
Use Case 3 – Managing Relationships between Contacts
Relationships are managed using the custom Relationship object. Some of the key features –
- Type picklist field determines the Relationship Type. Values can be edited or deleted as per customer’s requirement. Good Set of values already comes by default.
- Reciprocal Relationships are auto created once a Relationship record is created and linked to the original Relationship record. This setting can be controlled thru the HEDA settings tab
- Allow Auto Created Duplicate Relations (Auto-created Relationships are auto-deduplicated to prevent duplicate Relationship records from being created between two Contacts) . This setting can be turned off thru the HEDA settings tab
- Auto Creation of Relationship record can also be setting thru the HEDA Setting tab
Auto relationships allow you to identify your own custom lookup fields on the Contact or Campaign Member objects that trigger the creation of a new Relationship type of your choice. For example, a ‘Referral’ lookup from Campaign Member to Contact could create a ‘Referrer’ and ‘Referee’ Relationships between the two Contacts. (Note that this feature is not available for Leads or Campaign Member objects that reference Leads.)
HEDA will create an environment for developers to build in agreement with HEDA specifications, giving Salesforce.org customers confidence when engaging with the salesforce partner ecosystem and providing partners and schools confidence that they are aligned with a Salesforce.org supported framework.
References
http://developer.salesforce.org/HEDAP/ApexDocumentation/