Populate the Type field in relationship tables using the fix script
Leverage the fix script to add and manage the Type field in relationship tables. This script simplifies data mapping and enhances record consistency across the base system.
Before you begin
Role required: admin
About this task
Starting with the Yokohama release, a new optional Type field is added to the account team member [sn_customerservice_team_member] table, which previously included the fields Account, User, and Responsibility. This fix script applies to all relationship tables in the base system.
The Type field references the related party configuration [sn_customerservice_related_party_configuration] table, a metadata table that enables administrators to define a Type Configuration for each responsibility. This field enables administrators to assign meaningful business names to responsibilities, reducing duplication. By internally referencing the same responsibility, the Type field simplifies data management and improves record consistency.
You can use the following procedure to populate the Type field using the fix script.
Procedure
Result
- Automatically populates the Type field for matching records in the selected relationship table.
- Maps existing responsibilities to their corresponding Type Configuration records.
- Processes updates in batches for optimized performance.
- Logs updates for reference.
You can manually populate the Type field by navigating to the related party configuration [sn_customerservice_related_party_configuration] table and creating Type Configuration records for each distinct responsibility.
Example
- Account Manager 1
- Account Manager 2
- Account Manager 3
- Navigate to the related party configuration [sn_customerservice_related_party_configuration] table.
- Create three Type Configuration records, one for each responsibility.
- Run the fix script that automatically:
- Maps each responsibility to its corresponding Type.
- Populates the Type field for all records in the account team member [sn_customerservice_team_member] table.