Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions messages/migrate.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"startingCustomLabelMigration": "Starting Custom Labels migration",
"customLabelMigrationCompleted": "Custom Labels migration completed. %s labels processed out of %s total",
"errorDuringCustomLabelMigration": "Error during Custom Labels migration: %s",
"customLabelMigrationErrorMessage": "We couldn’t complete the Custom Labels migration. Check your org configuration and confirm it meets the requirements outlined <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_oma_prereq.htm&type=5' target='_blank'>here</a>.",
"callingCloneCustomLabelsAPI": "Calling clone-custom-labels API for namespace: %s",
"cloneCustomLabelsAPIResponse": "Clone custom labels API response summary: %s results",
"errorCallingCloneCustomLabelsAPI": "Error calling clone-custom-labels API: %s",
Expand Down
2 changes: 1 addition & 1 deletion src/migration/customLabels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class CustomLabelsMigrationTool extends BaseMigrationTool implements Migr
name: this.getName(),
results: emptyMap,
records: emptyMap, // Both point to the same empty map
errors: [String(error)],
errors: [this.messages.getMessage('customLabelMigrationErrorMessage')],
},
];
}
Expand Down
2 changes: 2 additions & 0 deletions src/utils/constants/documentRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ export const documentRegistry = {
'https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_naming_conventions.htm&type=5',
manualDeploymentSteps:
'https://help.salesforce.com/s/articleView?id=xcloud.os_standard_set_up_your_environment_for_customizing_omniscript_elements.htm&type=5',
customLabelMigrationErrorMessage:
'https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_oma_prereq.htm&type=5',
};
2 changes: 2 additions & 0 deletions test/utils/constants/documentRegistry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const titles = {
duplicateCardNameMessage: 'Clone a Flexcard',
reservedKeysFoundInPropertySet: 'Omnistudio Naming Conventions',
manualDeploymentSteps: 'Set Up Your Environment to Customize Omniscript Elements',
customLabelMigrationErrorMessage: 'Omnistudio Migration Prerequisites',
};

describe('DocumentRegistry', () => {
Expand Down Expand Up @@ -126,6 +127,7 @@ describe('DocumentRegistry', () => {
'duplicateCardNameMessage',
'reservedKeysFoundInPropertySet',
'manualDeploymentSteps',
'customLabelMigrationErrorMessage',
];

expectedKeys.forEach((key) => {
Expand Down