Skip to main content

Record Codes

Seven20 includes the functionality to effectively "tag" records with codes. These codes can be used to categorise records and provide an easy visual way to see this information when viewing records. These codes are also utilised in the Search and Match functionality to allow for more granular candidate searching and matching. For a list of supported objects, see Assigning Codes.

Objects

The codes functionality is made up of two different objects, Code (seven20__Code__c) and Record Code (seven20__Record_Code__c), which share a one-to-many relationship from code to record code. The Code object defines the details of the code, such as the name and category, while the Record Code object is the actual instance of the code that is assigned to a record.

Code

Codes are the top-level object and define the details about the code. It has the following fields:

Field LabelAPI NameTypeRequiredDescription
Code NameNameText(80)YesThe name of the code, as shown in the UI
Categoryseven20__Category__cPicklistNoThe category of the code, used to group related codes together. Can be customised, such as defining the category's pill colours in the UI
Assigned Objectsseven20__Assigned_Objects__cMulti-Select PicklistNoThe objects that this code can be assigned to. If left blank, the code can be assigned to any object
Inactiveseven20__Inactive__cCheckboxNoIf checked, the code will be marked as inactive and will not be available to be added to new records in the UI. Does not remove it from existing records, nor prevent it from being searched
Parent Codeseven20__Parent_Code__cLookup (Code)NoUsed to designate a Code as a 'child' of the Code populated in the lookup when using a multi-tier hierarchy
warning

The assigned objects field picklist options API names must match the API names of the objects in Salesforce.

Record code

Record Codes are a child object of Codes and are the actual instance of a Code that are assigned to a record. The object has the following fields:

Field LabelAPI NameTypeRequiredDescription
Codeseven20__Code__cLookup (seven20__Code__c)YesThe code that is being assigned to the record
Keyseven20__Key__cText(255)YesA unique key made from the Code value, and the populated lookup value. It is used to prevent duplicate record codes from being created
Accountseven20__Account__cLookup (Account)NoThe account that the record code is being assigned to
Contactseven20__Contact__cLookup (Contact)NoThe contact that the record code is being assigned to
Jobseven20__Job__cLookup (Job)NoThe job that the record code is being assigned to
Job Leadseven20__Job_Lead__cLookup (Job Lead)NoThe job lead that the record code is being assigned to
danger

Only 1 lookup field, other than the Code lookup, can be populated on a record code.

warning

Do not manually set or modify the key field.