Skip to content

Commit c7d8a94

Browse files
committed
fix: minor bugs and labels
1 parent 2c835a6 commit c7d8a94

18 files changed

+129
-98
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ sfdx omnistudio:migration:assess -u [email protected]
4343
sfdx omnistudio:migration:migrate -u [email protected]
4444
4545
46-
// To migrate/assess specific components: FlexCards, DataMappers, Integration Procedures, OmniScripts, or Global Auto Numbers, add the following parameters:
47-
--only=dm // DataMappers
46+
// To migrate/assess specific components: FlexCards, Data Mappers, Integration Procedures, OmniScripts, or Omni Global Auto Numbers, add the following parameters:
47+
--only=dm // Data Mappers
4848
--only=ip // Integration Procedures
4949
--only=os // OmniScripts
5050
--only=fc // FlexCards
51-
--only=autonumber // Global Auto Numbers
51+
--only=autonumber // Omni Global Auto Numbers
5252
5353
// To migrate all versions of the components and not just the active ones:
5454
--allversions
@@ -60,42 +60,42 @@ sfdx omnistudio:migration:migrate -u [email protected]
6060

6161
5. An HTML page will be open in your default browser with the results of your migration/assessment reports.
6262

63-
## Global Auto Number Migration
63+
## Omni Global Auto Number Migration
6464

65-
Global Auto Numbers are components that generate sequential numbers across your Omnistudio org. The migration tool supports both assessment and migration of these components.
65+
Omni Global Auto Numbers are components that generate sequential numbers across your Omnistudio org. The migration tool supports both assessment and migration of these components.
6666

67-
### Prerequisites for Global Auto Number Migration
67+
### Prerequisites for Omni Global Auto Number Migration
6868

69-
Before migrating Global Auto Numbers, ensure that:
69+
Before migrating Omni Global Auto Numbers, ensure that:
7070

7171
1. **Org Preference is Disabled**: The `OmniGlobalAutoNumberPref` org preference must be disabled before migration
7272
2. **Rollback Flags are Disabled**: Both `RollbackIPChanges` and `RollbackDRChanges` flags must be disabled
7373
3. **Namespace is Specified**: Provide the correct namespace for your OmniStudio package
7474

75-
### Global Auto Number Migration Process
75+
### Omni Global Auto Number Migration Process
7676

77-
The migration process for Global Auto Numbers includes:
77+
The migration process for Omni Global Auto Numbers includes:
7878

7979
1. **Pre-migration Checks**: Validates that org preferences and rollback flags are properly configured
80-
2. **Data Migration**: Transforms Global Auto Number settings from custom objects to standard Business Process Objects (BPO)
80+
2. **Data Migration**: Transforms Omni Global Auto Number settings from custom objects to standard Business Process Objects (BPO)
8181
3. **Post-migration Cleanup**: Removes source objects and enables the `OmniGlobalAutoNumberPref` org preference
8282
4. **Validation**: Ensures all records are successfully migrated before cleanup
8383

84-
### Global Auto Number Assessment
84+
### Omni Global Auto Number Assessment
8585

8686
Assessment provides detailed information about:
8787

8888
- **Name Changes**: Identifies any naming modifications required to comply with API naming standards
8989
- **Migration Readiness**: Determines if components can be automatically migrated or require manual intervention
9090
- **Warnings**: Highlights potential issues that may affect migration success
9191

92-
### Usage Examples for Global Auto Numbers
92+
### Usage Examples for Omni Global Auto Numbers
9393

9494
```bash
95-
# Assess Global Auto Numbers only
95+
# Assess Omni Global Auto Numbers only
9696
sfdx omnistudio:migration:assess -u [email protected] --only=autonumber
9797

98-
# Migrate Global Auto Numbers only
98+
# Migrate Omni Global Auto Numbers only
9999
sfdx omnistudio:migration:migrate -u [email protected] --only=autonumber
100100
```
101101

@@ -122,8 +122,8 @@ OPTIONS
122122
and not just the active ones.
123123
124124
--only=only specify components to assess:
125-
dm (DataMappers), ip (Integration Procedures),
126-
os (OmniScripts), fc (FlexCards), autonumber (Global Auto Numbers)
125+
dm (Data Mappers), ip (Integration Procedures),
126+
os (OmniScripts), fc (FlexCards), autonumber (Omni Global Auto Numbers)
127127
128128
--relatedobjects=relatedobjects specify related objects to assess:
129129
'apex' for Apex classes

messages/assess.json

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
"processingDataRaptor": "Processing DataMapper: %s",
4444
"processingOmniScript": "Processing Omniscript: %s",
4545
"processingGlobalAutoNumber": "Processing GlobalAutoNumber: %s",
46-
"foundDataRaptorsToAssess": "Found %s DataMappers to assess",
46+
"foundDataRaptorsToAssess": "Found %s Data Mappers to assess",
4747
"foundOmniScriptsToAssess": "Found %s %s to assess",
4848
"foundGlobalAutoNumbersToAssess": "Found %s GlobalAutoNumbers to assess",
49-
"startingDataRaptorAssessment": "Starting DataMapper assessment",
49+
"startingDataRaptorAssessment": "Starting Data Mappers assessment",
5050
"startingOmniScriptAssessment": "Starting %s assessment",
5151
"startingGlobalAutoNumberAssessment": "Starting GlobalAutoNumber assessment",
5252
"allVersionsInfo": "allVersions : %s",
@@ -55,20 +55,20 @@
5555
"assessmentTargets": "Assessment targets: %s",
5656
"relatedObjectsInfo": "Related objects: %s",
5757
"allVersionsFlagInfo": "All versions: %s",
58-
"assessedDataRaptorsCount": "Assessed %s DataMappers",
59-
"dataRaptorAssessmentCompleted": "DataMappers assessment completed",
58+
"assessedDataRaptorsCount": "Assessed %s Data Mappers",
59+
"dataRaptorAssessmentCompleted": "Data Mappers assessment completed",
6060
"flexCardAssessment": "FlexCard Assessment",
6161
"assessedFlexCardsCount": "Assessed %s FlexCards",
6262
"flexCardAssessmentCompleted": "FlexCard assessment completed",
6363
"globalAutoNumberAssessment": "GlobalAutoNumber Assessment",
6464
"assessedGlobalAutoNumbersCount": "Assessed %s GlobalAutoNumbers",
65-
"globalAutoNumberAssessmentCompleted": "The assessment for Global Auto Number is complete.",
65+
"globalAutoNumberAssessmentCompleted": "The assessment for Omni Global Auto Number is complete.",
6666
"omniScriptAssessment": "%s Assessment",
6767
"assessedOmniScriptsCount": "Assessed %s Omniscripts",
6868
"assessedIntegrationProceduresCount": "Assessed %s Integration Procedures",
6969
"omniScriptAssessmentCompleted": "%s assessment completed",
70-
"startingFlexCardAssessment": "Starting FlexCard assessment",
71-
"foundFlexCardsToAssess": "Found %s FlexCards to assess",
70+
"startingFlexCardAssessment": "Starting Flexcards assessment",
71+
"foundFlexCardsToAssess": "Found %s Flexcards to assess",
7272
"startingApexAssessment": "Starting Apex assessment in project path: %s",
7373
"processingApexFilesForAssessment": "Processing Apex files for assessment",
7474
"successfullyProcessedApexFilesForAssessment": "Successfully processed %s Apex files for assessment",
@@ -81,6 +81,8 @@
8181
"fileNoOmnistudioCalls": "File %s does not have any omnistudio calls or remote calls. No changes will be applied.",
8282
"fileAlreadyImplementsCallable": "file %s already implements callable no changes will be applied",
8383
"inApexDrNameWillBeUpdated": "In Apex %s DR name %s will be updated to %s",
84+
"inApexIpNameWillBeUpdated": "In Apex %s IP name %s will be updated to %s",
85+
"inApexVariableAssignmentWillBeUpdated": "In Apex %s variable assignment %s = '%s' will be updated to %s",
8486
"startingLwcAssessment": "Starting LWC assessment in project path: %s",
8587
"processingLwcsForAssessment": "Processing LWCs for assessment",
8688
"successfullyProcessedLwcsForAssessment": "Successfully processed %s LWCs for assessment",
@@ -95,7 +97,7 @@
9597
"methodCallBundleNameUpdated": "Method call bundle name will be updated in %s for class %s method %s",
9698
"cardNameChangeMessage": "Card name will be changed from %s to %s to follow API naming standards",
9799
"authordNameChangeMessage": "Author name will be changed from %s to %s to follow API naming standards",
98-
"omniScriptNameChangeMessage": "Omniscript reference part %s will be changed to %s during migration.",
100+
"omniScriptNameChangeMessage": "Omniscript reference name %s will be changed to %s during migration.",
99101
"dataRaptorNameChangeMessage": "DataMapper reference %s will be changed to %s during migration.",
100102
"integrationProcedureNameChangeMessage": "Integration Procedure reference %s will be changed to %s during migration.",
101103
"integrationProcedureManualUpdateMessage": "Integration Procedure reference %s may need manual updates after migration.",
@@ -104,7 +106,7 @@
104106
"assessedCustomLabelsCount": "Assessed %s Custom Labels",
105107
"customLabelAssessmentCompleted": "Custom Label assessment completed",
106108
"errorDuringCustomLabelAssessment": "Error during Custom Label assessment: %s",
107-
"duplicateGlobalAutoNumberNameMessage": "Potential duplicate: Another Global Auto Number has the same name %s after name cleaning. This may cause conflicts during migration",
109+
"duplicateGlobalAutoNumberNameMessage": "Potential duplicate: Another Omni Global Auto Number has the same name %s after name cleaning. This may cause conflicts during migration",
108110
"existingApexPrompt": "Do you have a sfdc project that already contains the APEX classes retrieved from your org? [y/n]",
109111
"enterExistingProjectPath": "Enter the path to the project folder that contains the retrieved APEX classes",
110112
"invalidProjectFolderPath": "Provided project folder does not exist. Please provide a valid project folder path",
@@ -179,7 +181,7 @@
179181
"flexcardStorageProcessingStarted": "Preparing storage for Flexcards.",
180182
"errorWhileProcessingFlexcardStorage": "We couldn’t process the Flexcard name for storage.",
181183
"missingInfo": "Info is missing",
182-
"errorCheckingGlobalAutoNumber": "We couldn't check whether the Global Auto Number setting is enabled: %s. Try again later.",
184+
"errorCheckingGlobalAutoNumber": "We couldn't check whether the Omni Global Auto Number setting is enabled: %s. Try again later.",
183185
"errorMigrationMessage": "Error migrating object: %s",
184186
"nameMappingUndefined": "Undefined name mapping found",
185187
"experienceSiteException": "We’ve encountered an exception while processing Experience Cloud sites.",
@@ -195,5 +197,8 @@
195197
"errorFetchingCustomLabels": "Error fetching custom labels: %s",
196198
"customLabelAssessmentSummary": "Custom Label with same name and different value is already exist without namespace.",
197199
"generatedCustomLabelAssessmentReportPage": "Generated custom label assessment report page %s of %s with %s labels",
198-
"manualDeploymentSteps": "<a href='%s' target='_blank'>Please refer to this documentation for manual deployment process</a>"
200+
"manualDeploymentSteps": "<a href='%s' target='_blank'>Please refer to this documentation for manual deployment process</a>",
201+
"varDeclarationUpdated": "Variable initialization will be updated for target name",
202+
"ipNameUpdateFailed": "IP reference %s can’t be updated",
203+
"dmNameUpdateFailed": "DM reference %s can’t be updated"
199204
}

messages/migrate.json

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@
6363
"cleaningComponent": "Cleaning: %s",
6464
"cleaningDone": "Cleaning Done: %s",
6565
"migratingComponent": "Migrating: %s",
66-
"cleaningFailed": "Cleaning Failed: %s",
66+
"cleaningFailed": "%s pre-migration cleanup failed.",
6767
"migrationCompleted": "Migration completed: %s",
6868
"migrationFailed": "Migration failed: %s",
6969
"formulaSyntaxError": "There was some problem while updating the formula syntax, please check the all the formula's syntax once : %s",
70-
"foundDataRaptorsToMigrate": "Found %s DataMappers to migrate",
70+
"foundDataRaptorsToMigrate": "Found %s Data Mappers to migrate",
7171
"foundFlexCardsToMigrate": "Found %s FlexCards to migrate",
7272
"foundOmniScriptsToMigrate": "Found %s %s to migrate",
7373
"foundGlobalAutoNumbersToMigrate": "Found %s GlobalAutoNumbers to migrate",
@@ -87,6 +87,7 @@
8787
"successfullyProcessedLwcsForMigration": "Successfully processed %s LWCs for migration",
8888
"lwcMigrationResults": "LWC migration results: %s",
8989
"inApexDrNameWillBeUpdatedMigration": "In Apex %s DR name %s will be updated to %s",
90+
"inApexIpNameWillBeUpdatedMigration": "In Apex %s IP name %s will be updated to %s",
9091
"retrievingMetadata": "Retrieving metadata for %s in project path: %s",
9192
"creatingProject": "Creating project %s",
9293
"projectCreated": "Project %s created",
@@ -129,22 +130,22 @@
129130
"errorProcessingFlexiPage": "Error processing FlexiPage: %s, %s",
130131
"flexipagesWithChanges": "Found %s FlexiPages with changes",
131132
"omniGlobalAutoNumberPrefEnabled": "Successfully enabled OmniGlobalAutoNumberPref org preference",
132-
"errorEnablingOmniGlobalAutoNumberPref": "We couldnt enable the Global Auto Number setting. Turn on the Global Auto Number setting manually, and try again. See <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Set Up Omni Global Auto Number</a>.",
133-
"performingPreMigrationChecks": "Performing pre-migration checks for Global Auto Number...",
134-
"preMigrationChecksPassed": "Pre-migration checks passed. Proceeding with Global Auto Number migration.",
133+
"errorEnablingOmniGlobalAutoNumberPref": "We couldn't enable the Omni Global Auto Number setting. Turn on the Omni Global Auto Number setting manually, and try again. See <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Set Up Omni Global Auto Number</a>.",
134+
"performingPreMigrationChecks": "Performing pre-migration checks for Omni Global Auto Number...",
135+
"preMigrationChecksPassed": "Pre-migration checks passed. Proceeding with Omni Global Auto Number migration.",
135136
"preMigrationChecksFailed": "Pre-migration checks failed. Migration cannot proceed.",
136-
"globalAutoNumberPrefEnabledError": "The Global Auto Number setting is enabled and global auto numbers have already been migrated.",
137-
"bothRollbackFlagsEnabledError": "We couldnt turn on Global Auto Number. Disable the RollBackDRChanges and RollBackIPChanges <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Omni Interaction Configurations</a>, and try again.",
138-
"rollbackIPFlagEnabledError": "We couldnt turn on Global Auto Number. Disable the RollBackIPChanges <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Omni Interaction Configurations</a> and try again.",
139-
"rollbackDRFlagEnabledError": "We couldnt turn on Global Auto Number. Disable the RollBackDRChanges <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Omni Interaction Configurations</a> and try again.",
137+
"globalAutoNumberPrefEnabledError": "The Omni Global Auto Number setting is enabled and global auto numbers have already been migrated.",
138+
"bothRollbackFlagsEnabledError": "We couldn't turn on Omni Global Auto Number. Disable the RollBackDRChanges and RollBackIPChanges <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Omni Interaction Configurations</a>, and try again.",
139+
"rollbackIPFlagEnabledError": "We couldn't turn on Omni Global Auto Number. Disable the RollBackIPChanges <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Omni Interaction Configurations</a> and try again.",
140+
"rollbackDRFlagEnabledError": "We couldn't turn on Omni Global Auto Number. Disable the RollBackDRChanges <a href='https://help.salesforce.com/s/articleView?id=xcloud.os_standard_global_auto_number.htm&type=5' target='_blank'>Omni Interaction Configurations</a> and try again.",
140141
"errorCheckingRollbackFlags": "Error checking rollback flags status.",
141-
"startingPostMigrationCleanup": "Starting post-migration cleanup for Global Auto Number...",
142+
"startingPostMigrationCleanup": "Starting post-migration cleanup for Omni Global Auto Number...",
142143
"postMigrationCleanupCompleted": "Post-migration cleanup completed successfully.",
143144
"errorDuringPostMigrationCleanup": "We’ve encountered an error during the post-migration cleanup. Try again later.",
144-
"duplicatedGlobalAutoNumberName": "Duplicated Global Auto Number name",
145-
"errorWhileUploadingGlobalAutoNumber": "An error occurred while uploading Global Auto Number: ",
146-
"startingGlobalAutoNumberAssessment": "Starting Global Auto Number assessment...",
147-
"foundGlobalAutoNumbersToAssess": "Found %s Global Auto Numbers to assess",
145+
"duplicatedGlobalAutoNumberName": "Duplicated Omni Global Auto Number name",
146+
"errorWhileUploadingGlobalAutoNumber": "An error occurred while uploading Omni Global Auto Number: ",
147+
"startingGlobalAutoNumberAssessment": "Starting Omni Global Auto Number assessment...",
148+
"foundGlobalAutoNumbersToAssess": "Found %s Omni Global Auto Numbers to assess",
148149
"unexpectedError": "An unexpected error occurred during processing",
149150
"migrationValidationFailed": "Post Migration validation failed.",
150151
"experienceSiteMetadataConsent": "Your consent for processing Experience Cloud sites is %s",
@@ -188,7 +189,7 @@
188189
"flexcardStorageProcessingStarted": "Preparing storage for Flexcards.",
189190
"errorWhileProcessingFlexcardStorage": "We couldn’t process the Flexcard name for storage.",
190191
"missingInfo": "Info is missing",
191-
"errorCheckingGlobalAutoNumber": "We couldnt check whether the Global Auto Number setting is enabled: %s. Try again later.",
192+
"errorCheckingGlobalAutoNumber": "We couldn't check whether the Omni Global Auto Number setting is enabled: %s. Try again later.",
192193
"errorMigrationMessage": "Error migrating object: %s",
193194
"nameMappingUndefined": "Undefined name mapping found",
194195
"autoDeployConsentMessage": "Do you want to deploy the related objects automatically? [y/n]",
@@ -223,7 +224,7 @@
223224
"integrationProcedureTypeEmptyAfterCleaning": "Integration Procedure Type '%s' becomes empty after name cleaning. Please provide a valid Type value.",
224225
"integrationProcedureSubtypeEmptyAfterCleaning": "Integration Procedure SubType '%s' becomes empty after name cleaning. Please provide a valid SubType value.",
225226
"manifestDeployementStarted": "Manifest deployment started with ID: %s",
226-
"migrationConsentMessage": "Make sure that all records listed in the Assessment Status column in the Assessment Report are marked as Green before proceeding with the migration. Do you want to proceed? Yes or No?",
227+
"migrationConsentMessage": "Make sure that all records listed in the Assessment Status column in the Assessment Report are marked as Ready for Migration before proceeding with the migration. Do you want to proceed? Yes or No?",
227228
"truncationFailed": "Truncation failed for %s: %s",
228229
"invalidTypeMigrateErrorMessage": "We couldn't migrate your Omnistudio components in the %s namespace. Select the correct namespace and try again",
229230
"errorCheckingStandardRuntime": "We couldn't check whether the Standard OmniStudio Runtime setting is enabled: %s. Try again later.",
@@ -264,5 +265,6 @@
264265
"generatedCustomLabelsReportPage": "Generated custom labels report page %s of %s with %s labels",
265266
"errorFetchingCustomLabels": "Error fetching custom labels: %s",
266267
"customLabelAssessmentSummary": "Custom Label with same name and different value is already exist without namespace.",
267-
"generatedCustomLabelAssessmentReportPage": "Generated custom label assessment report page %s of %s with %s labels"
268+
"generatedCustomLabelAssessmentReportPage": "Generated custom label assessment report page %s of %s with %s labels",
269+
"varDeclarationUpdated": "Variable initialization has been updated for target name"
268270
}

src/commands/omnistudio/migration/migrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export default class Migrate extends OmniStudioBaseCommand {
404404

405405
/**
406406
* Get migration objects in the correct dependency order:
407-
* 1. DataMappers (lowest dependencies)
407+
* 1. Data Mappers (lowest dependencies)
408408
* 2. Integration Procedures/ OmniScripts
409409
* 3. FlexCards (highest dependencies)
410410
* 4. GlobalAutoNumbers (independent)

0 commit comments

Comments
 (0)