Skip to content

Commit 0eaa2ed

Browse files
authored
Merge pull request #392 from snehaljha-sf/labels_n_apex_fix
Apex simple declaration update and labels update
2 parents 3b89f8d + 5498ce3 commit 0eaa2ed

22 files changed

+1265
-130
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: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"omnistudio:migration:assess -u [email protected] --only=os",
77
"omnistudio:migration:assess -u [email protected] --only=fc",
88
"omnistudio:migration:assess -u [email protected] --only=cl",
9-
"omnistudio:migration:assess -u [email protected] --only=autonumber"
9+
"omnistudio:migration:assess -u [email protected] --only=autonumber",
10+
"omnistudio:migration:assess -u [email protected] --relatedobjects apex,lwc,flexipage,expsites",
11+
"omnistudio:migration:assess -u [email protected] -r apex,lwc,flexipage,expsites"
1012
],
1113
"commandDescription": "Assess migration of omnistudio components from custom objects to standard objects",
1214
"errorNoOrgResults": "No results found for the org '%s'.",
@@ -39,14 +41,14 @@
3941
"errorDuringFlexCardAssessment": "Error during FlexCard assessment",
4042
"errorDuringOmniScriptAssessment": "Error during Omniscript assessment",
4143
"errorDuringGlobalAutoNumberAssessment": "Error during GlobalAutoNumber assessment",
42-
"processingFlexCard": "Processing FlexCard: %s",
43-
"processingDataRaptor": "Processing DataMapper: %s",
44-
"processingOmniScript": "Processing Omniscript: %s",
45-
"processingGlobalAutoNumber": "Processing GlobalAutoNumber: %s",
46-
"foundDataRaptorsToAssess": "Found %s DataMappers to assess",
44+
"processingFlexCard": "Processing FlexCards: %s",
45+
"processingDataRaptor": "Processing Data Mappers: %s",
46+
"processingOmniScript": "Processing Omniscripts: %s",
47+
"processingGlobalAutoNumber": "Processing Omni Global Auto Numbers: %s",
48+
"foundDataRaptorsToAssess": "Found %s Data Mappers to assess",
4749
"foundOmniScriptsToAssess": "Found %s %s to assess",
4850
"foundGlobalAutoNumbersToAssess": "Found %s GlobalAutoNumbers to assess",
49-
"startingDataRaptorAssessment": "Starting DataMapper assessment",
51+
"startingDataRaptorAssessment": "Starting Data Mappers assessment",
5052
"startingOmniScriptAssessment": "Starting %s assessment",
5153
"startingGlobalAutoNumberAssessment": "Starting GlobalAutoNumber assessment",
5254
"allVersionsInfo": "allVersions : %s",
@@ -55,20 +57,20 @@
5557
"assessmentTargets": "Assessment targets: %s",
5658
"relatedObjectsInfo": "Related objects: %s",
5759
"allVersionsFlagInfo": "All versions: %s",
58-
"assessedDataRaptorsCount": "Assessed %s DataMappers",
59-
"dataRaptorAssessmentCompleted": "DataMappers assessment completed",
60+
"assessedDataRaptorsCount": "Assessed %s Data Mappers",
61+
"dataRaptorAssessmentCompleted": "Data Mappers assessment completed",
6062
"flexCardAssessment": "FlexCard Assessment",
6163
"assessedFlexCardsCount": "Assessed %s FlexCards",
6264
"flexCardAssessmentCompleted": "FlexCard assessment completed",
6365
"globalAutoNumberAssessment": "GlobalAutoNumber Assessment",
6466
"assessedGlobalAutoNumbersCount": "Assessed %s GlobalAutoNumbers",
65-
"globalAutoNumberAssessmentCompleted": "The assessment for Global Auto Number is complete.",
67+
"globalAutoNumberAssessmentCompleted": "The assessment for Omni Global Auto Number is complete.",
6668
"omniScriptAssessment": "%s Assessment",
6769
"assessedOmniScriptsCount": "Assessed %s Omniscripts",
6870
"assessedIntegrationProceduresCount": "Assessed %s Integration Procedures",
6971
"omniScriptAssessmentCompleted": "%s assessment completed",
70-
"startingFlexCardAssessment": "Starting FlexCard assessment",
71-
"foundFlexCardsToAssess": "Found %s FlexCards to assess",
72+
"startingFlexCardAssessment": "Starting Flexcards assessment",
73+
"foundFlexCardsToAssess": "Found %s Flexcards to assess",
7274
"startingApexAssessment": "Starting Apex assessment in project path: %s",
7375
"processingApexFilesForAssessment": "Processing Apex files for assessment",
7476
"successfullyProcessedApexFilesForAssessment": "Successfully processed %s Apex files for assessment",
@@ -81,6 +83,8 @@
8183
"fileNoOmnistudioCalls": "File %s does not have any omnistudio calls or remote calls. No changes will be applied.",
8284
"fileAlreadyImplementsCallable": "file %s already implements callable no changes will be applied",
8385
"inApexDrNameWillBeUpdated": "In Apex %s DR name %s will be updated to %s",
86+
"inApexIpNameWillBeUpdated": "In Apex %s IP name %s will be updated to %s",
87+
"inApexVariableAssignmentWillBeUpdated": "In Apex %s variable assignment %s = '%s' will be updated to %s",
8488
"startingLwcAssessment": "Starting LWC assessment in project path: %s",
8589
"processingLwcsForAssessment": "Processing LWCs for assessment",
8690
"successfullyProcessedLwcsForAssessment": "Successfully processed %s LWCs for assessment",
@@ -95,7 +99,7 @@
9599
"methodCallBundleNameUpdated": "Method call bundle name will be updated in %s for class %s method %s",
96100
"cardNameChangeMessage": "Card name will be changed from %s to %s to follow API naming standards",
97101
"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.",
102+
"omniScriptNameChangeMessage": "Omniscript reference name %s will be changed to %s during migration.",
99103
"dataRaptorNameChangeMessage": "DataMapper reference %s will be changed to %s during migration.",
100104
"integrationProcedureNameChangeMessage": "Integration Procedure reference %s will be changed to %s during migration.",
101105
"integrationProcedureManualUpdateMessage": "Integration Procedure reference %s may need manual updates after migration.",
@@ -104,7 +108,7 @@
104108
"assessedCustomLabelsCount": "Found %s labels that need attention out of %s total",
105109
"customLabelAssessmentCompleted": "Custom Label assessment completed",
106110
"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",
111+
"duplicateGlobalAutoNumberNameMessage": "Potential duplicate: Another Omni Global Auto Number has the same name %s after name cleaning. This may cause conflicts during migration",
108112
"existingApexPrompt": "Do you have a sfdc project that already contains the APEX classes retrieved from your org? [y/n]",
109113
"enterExistingProjectPath": "Enter the path to the project folder that contains the retrieved APEX classes",
110114
"invalidProjectFolderPath": "Provided project folder does not exist. Please provide a valid project folder path",
@@ -179,7 +183,7 @@
179183
"flexcardStorageProcessingStarted": "Preparing storage for Flexcards.",
180184
"errorWhileProcessingFlexcardStorage": "We couldn’t process the Flexcard name for storage.",
181185
"missingInfo": "Info is missing",
182-
"errorCheckingGlobalAutoNumber": "We couldn't check whether the Global Auto Number setting is enabled: %s. Try again later.",
186+
"errorCheckingGlobalAutoNumber": "We couldn't check whether the Omni Global Auto Number setting is enabled: %s. Try again later.",
183187
"errorMigrationMessage": "Error migrating object: %s",
184188
"nameMappingUndefined": "Undefined name mapping found",
185189
"experienceSiteException": "We’ve encountered an exception while processing Experience Cloud sites.",
@@ -198,5 +202,8 @@
198202
"customLabelFailedSummary": "Custom Label assessment failed due to errors.",
199203
"customLabelNeedsManualInterventionSummary": "Custom Label requires manual intervention for resolution.",
200204
"generatedCustomLabelAssessmentReportPage": "Generated custom label assessment report page %s of %s with %s labels",
201-
"manualDeploymentSteps": "<a href='%s' target='_blank'>Please refer to this documentation for manual deployment process</a>"
205+
"manualDeploymentSteps": "<a href='%s' target='_blank'>Please refer to this documentation for manual deployment process</a>",
206+
"varDeclarationUpdated": "Variable initialization will be updated for target name",
207+
"ipNameUpdateFailed": "IP reference %s can’t be updated",
208+
"dmNameUpdateFailed": "DM reference %s can’t be updated"
202209
}

0 commit comments

Comments
 (0)