Skip to content

Commit 504660b

Browse files
Merge branch 'prerelease/develop-ga' into prerelease/alpha
2 parents 31b274d + e0bf2fc commit 504660b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+6027
-192
lines changed

README.md

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ sfdx omnistudio:migration:assess -u [email protected]
4141
sfdx omnistudio:migration:migrate -u [email protected]
4242
4343
44-
// To migrate/assess specific components: FlexCards, DataMappers, Integration Procedures, or OmniScripts, add the following parameters:
45-
--only=dr
46-
--only=ip
47-
--only=os
48-
--only=fc
44+
// To migrate/assess specific components: FlexCards, DataMappers, Integration Procedures, OmniScripts, or Global Auto Numbers, add the following parameters:
45+
--only=dr // DataMappers (DataRaptors)
46+
--only=ip // Integration Procedures
47+
--only=os // OmniScripts
48+
--only=fc // FlexCards
49+
--only=autonumber // Global Auto Numbers
4950
5051
// To migrate all versions of the components and not just the active ones:
5152
--allversions
@@ -59,6 +60,47 @@ sfdx omnistudio:migration:migrate -u [email protected]
5960

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

63+
## Global Auto Number Migration
64+
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.
66+
67+
### Prerequisites for Global Auto Number Migration
68+
69+
Before migrating Global Auto Numbers, ensure that:
70+
71+
1. **Org Preference is Disabled**: The `OmniGlobalAutoNumberPref` org preference must be disabled before migration
72+
2. **Rollback Flags are Disabled**: Both `RollbackIPChanges` and `RollbackDRChanges` flags must be disabled
73+
3. **Namespace is Specified**: Provide the correct namespace for your OmniStudio package
74+
75+
### Global Auto Number Migration Process
76+
77+
The migration process for Global Auto Numbers includes:
78+
79+
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)
81+
3. **Post-migration Cleanup**: Removes source objects and enables the `OmniGlobalAutoNumberPref` org preference
82+
4. **Validation**: Ensures all records are successfully migrated before cleanup
83+
84+
### Global Auto Number Assessment
85+
86+
Assessment provides detailed information about:
87+
88+
- **Name Changes**: Identifies any naming modifications required to comply with API naming standards
89+
- **Migration Readiness**: Determines if components can be automatically migrated or require manual intervention
90+
- **Warnings**: Highlights potential issues that may affect migration success
91+
92+
### Usage Examples for Global Auto Numbers
93+
94+
```bash
95+
# Assess Global Auto Numbers only
96+
sfdx omnistudio:migration:assess -u [email protected] --only=autonumber
97+
98+
# Migrate Global Auto Numbers only
99+
sfdx omnistudio:migration:migrate -u [email protected] --only=autonumber
100+
```
101+
102+
5. An HTML page will be open in your default browser with the results of your migration/assessment job.
103+
62104
### Assess Usage & parameters
63105

64106
```
@@ -88,7 +130,7 @@ OPTIONS
88130
89131
--only=only specify components to assess:
90132
dr (DataRaptors), ip (Integration Procedures),
91-
os (OmniScripts), fc (FlexCards)
133+
os (OmniScripts), fc (FlexCards), autonumber (Global Auto Numbers)
92134
93135
--relatedobjects=relatedobjects specify related objects to assess:
94136
'apex' for Apex classes

messages/assess.json

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
22
"examples": [
3-
"omnistudio:migration:assess -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE",
4-
"omnistudio:migration:assess -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=dr",
5-
"omnistudio:migration:assess -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=ip",
6-
"omnistudio:migration:assess -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=os",
7-
"omnistudio:migration:assess -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=fc"
3+
"omnistudio:migration:assess -u [email protected] ",
4+
"omnistudio:migration:assess -u [email protected] --only=dr",
5+
"omnistudio:migration:assess -u [email protected] --only=ip",
6+
"omnistudio:migration:assess -u [email protected] --only=os",
7+
"omnistudio:migration:assess -u [email protected] --only=fc",
8+
"omnistudio:migration:assess -u [email protected] --only=autonumber"
89
],
910
"commandDescription": "Assess migration of omnistudio components from custom objects to standard objects",
1011
"namespaceFlagDescription": "The namespaced of the package",
1112
"apiVersionFlagDescription": "The Salesforce API version to use",
1213
"errorNoOrgResults": "No results found for the org '%s'.",
13-
"onlyFlagDescription": "Migrate a single element: os | ip | fc | dr",
14-
"invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc | dr",
14+
"onlyFlagDescription": "Migrate a single element: os | ip | fc | dr | autonumber",
15+
"invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc | dr | autonumber",
1516
"couldNotDeactivateOmniProcesses": "Could not deactivate current OmniProcesses",
1617
"couldNotTruncate": "Could not truncate %s",
1718
"couldNotTruncateOmnniProcess": "Could not truncate OmniProcess. Please make sure your OS/IP is not referenced in an OmniScrirpt or Flex Card.",
@@ -29,7 +30,7 @@
2930
"allVersionsDescription": "Migrate all versions of a component",
3031
"changeMessage": " %s will be changed from %s to %s",
3132
"angularOSWarning": " Angular OmniScript will not be migrated, please convert this to LWC based Omniscript",
32-
"apexLwcGA": "Please select the type of component to assess: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types.",
33+
"relatedObjectGA": "Please select the type of component to assess: 'apex' for Apex classes, 'lwc' for Lightning Web Components, 'flexipage' for FlexiPages, or 'apex,lwc,flexipage' if you want to include all types.",
3334
"apexLwc": "Please select the type of component to assess: 'apex' for Apex classes.",
3435
"invalidNamespace": "The namespace you have passed is not valid namespace, the valid namespace of your org is ",
3536
"noPackageInstalled": "No package installed on given org.",
@@ -39,13 +40,17 @@
3940
"formulaSyntaxError": "There was some problem while updating the formula syntax, please check the all the formula's syntax once : %s",
4041
"errorDuringFlexCardAssessment": "Error during FlexCard assessment",
4142
"errorDuringOmniScriptAssessment": "Error during OmniScript assessment",
43+
"errorDuringGlobalAutoNumberAssessment": "Error during GlobalAutoNumber assessment",
4244
"processingFlexCard": "Processing FlexCard: %s",
4345
"processingDataRaptor": "Processing DataRaptor: %s",
4446
"processingOmniScript": "Processing OmniScript: %s",
47+
"processingGlobalAutoNumber": "Processing GlobalAutoNumber: %s",
4548
"foundDataRaptorsToAssess": "Found %s DataRaptors to assess",
4649
"foundOmniScriptsToAssess": "Found %s OmniScripts and Integration Procedures to assess",
50+
"foundGlobalAutoNumbersToAssess": "Found %s GlobalAutoNumbers to assess",
4751
"startingDataRaptorAssessment": "Starting DataRaptor assessment",
4852
"startingOmniScriptAssessment": "Starting OmniScript assessment",
53+
"startingGlobalAutoNumberAssessment": "Starting GlobalAutoNumber assessment",
4954
"allVersionsInfo": "allVersions : %s",
5055
"assessmentInitialization": "Assessment Initialization: Using namespace: %s",
5156
"apiVersionInfo": "API Version: %s",
@@ -57,6 +62,9 @@
5762
"flexCardAssessment": "FlexCard Assessment",
5863
"assessedFlexCardsCount": "Assessed %s FlexCards",
5964
"flexCardAssessmentCompleted": "FlexCard assessment completed",
65+
"globalAutoNumberAssessment": "GlobalAutoNumber Assessment",
66+
"assessedGlobalAutoNumbersCount": "Assessed %s GlobalAutoNumbers",
67+
"globalAutoNumberAssessmentCompleted": "GlobalAutoNumber assessment completed",
6068
"omniScriptAssessment": "OmniScript and Integration Procedure Assessment",
6169
"assessedOmniScriptsCount": "Assessed %s OmniScripts",
6270
"assessedIntegrationProceduresCount": "Assessed %s Integration Procedures",
@@ -115,4 +123,17 @@
115123
"errorGeneratingHTML": "Error while generating HTML from template for %s with properties %s",
116124
"unexpectedError": "Unexpected Assessment error",
117125
"errorEvaluatingExpression": "Error evaluating expression: %s, %s"
126+
"retrievingFlexiPages": "Retrieving FlexiPages",
127+
"successfullyRetrievedFlexiPages": "Successfully retrieved %s FlexiPages",
128+
"assessingFlexiPages": "Assessing FlexiPages",
129+
"completedProcessingAllFlexiPages": "Completed processing all flexipage files. Total processed: %s",
130+
"completedProcessingFlexiPage": "Completed processing %s - Errors: %s",
131+
"processingFlexiPage": "Processing flexipage file: %s",
132+
"startingFlexiPageProcessing": "Starting to process flexipage: %s",
133+
"readFlexiPageContent": "Read file content, size: %s characters",
134+
"updatedModifiedContent": "updated content in file: %s",
135+
"generatedDiffForFile": "Generated diff for file: %s",
136+
"errorProcessingFlexiPage": "Error processing flexipage file: %s, %s",
137+
"flexipagesWithChanges": "Found %s flexipage files with changes",
138+
"migratingFlexiPages": "Migrating FlexiPages"
118139
}

messages/migrate.json

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
{
22
"examples": [
3-
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE",
4-
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=dr",
5-
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=ip",
6-
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=os",
7-
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE --only=fc",
8-
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE -r apex,lwc",
9-
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE -r apex",
10-
"omnistudio:migration:migrate -u [email protected] --namespace=YOUR_PACKAGE_NAMESPACE -r lwc"
3+
"omnistudio:migration:migrate -u [email protected] ",
4+
"omnistudio:migration:migrate -u [email protected] --only=dr",
5+
"omnistudio:migration:migrate -u [email protected] --only=ip",
6+
"omnistudio:migration:migrate -u [email protected] --only=os",
7+
"omnistudio:migration:migrate -u [email protected] --only=fc",
8+
"omnistudio:migration:migrate -u [email protected] --only=autonumber",
9+
"omnistudio:migration:migrate -u [email protected] -r apex,lwc",
10+
"omnistudio:migration:migrate -u [email protected] -r apex",
11+
"omnistudio:migration:migrate -u [email protected] -r lwc"
1112
],
1213
"commandDescription": "Migrate omnistudio components from custom objects to standard objects",
1314
"namespaceFlagDescription": "The namespace of the package",
1415
"apiVersionFlagDescription": "The Salesforce API version to use",
1516
"errorNoOrgResults": "No results found for the org '%s'.",
16-
"onlyFlagDescription": "Migrate a single element: os | ip | fc | dr",
17-
"invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc | dr",
17+
"onlyFlagDescription": "Migrate a single element: os | ip | fc | dr | autonumber",
18+
"invalidOnlyFlag": "Invalid flag, valid options are: os | ip | fc | dr | autonumber",
1819
"couldNotDeactivateOmniProcesses": "Could not deactivate current OmniProcesses",
1920
"couldNotTruncate": "Could not truncate %s",
2021
"couldNotTruncateOmnniProcess": "Could not truncate OmniProcess. Please make sure your OS/IP is not referenced in an OmniScrirpt or Flex Card.",
@@ -29,7 +30,7 @@
2930
"errorWhileUploadingCard": "An error ocurred while uploading Card: ",
3031
"errorWhileCreatingElements": "An error ocurred while saving OmniScript elements: ",
3132
"allVersionsDescription": "Migrate all versions of a component",
32-
"apexLwcGA": "Please select the type of components to migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, or 'apex,lwc' if you want to include both types.",
33+
"relatedObjectGA": "Please select the type of components to migrate: 'apex' for Apex classes, 'lwc' for Lightning Web Components, 'flexipage' for FlexiPages, 'expsites' for Experience Sites, or 'apex,lwc,flexipage,expsites' if you want to include all types.",
3334
"apexLwc": "Please select the type of components to migrate: 'apex' for Apex classes.",
3435
"invalidNamespace": "The namespace you have passed is not valid namespace, the valid namespace of your org is ",
3536
"noPackageInstalled": "No package installed on given org.",
@@ -63,11 +64,13 @@
6364
"cleaningComponent": "Cleaning: %s",
6465
"cleaningDone": "Cleaning Done: %s",
6566
"migratingComponent": "Migrating: %s",
67+
"cleaningFailed": "Cleaning Failed: %s",
6668
"migrationCompleted": "Migration completed: %s",
6769
"formulaSyntaxError": "There was some problem while updating the formula syntax, please check the all the formula's syntax once : %s",
6870
"foundDataRaptorsToMigrate": "Found %s DataRaptors to migrate",
6971
"foundFlexCardsToMigrate": "Found %s FlexCards to migrate",
7072
"foundOmniScriptsToMigrate": "Found %s OmniScripts and Integration Procedures to migrate",
73+
"foundGlobalAutoNumbersToMigrate": "Found %s GlobalAutoNumbers to migrate",
7174
"allVersionsInfo": "allVersions : %s",
7275
"migrationInitialization": "Migration Initialization: Using namespace: %s",
7376
"apiVersionInfo": "API Version: %s",
@@ -113,4 +116,37 @@
113116
"labelStatusSkipped": "Skipped",
114117
"labelStatusFailed": "Failed",
115118
"labelStatusComplete": "Complete"
119+
"retrievingFlexiPages": "Retrieving FlexiPages",
120+
"successfullyRetrievedFlexiPages": "Successfully retrieved %s FlexiPages",
121+
"migratingFlexiPages": "Migrating FlexiPages",
122+
"completedProcessingAllFlexiPages": "Completed processing all flexipage files. Total processed: %s",
123+
"completedProcessingFlexiPage": "Completed processing %s - Errors: %s",
124+
"processingFlexiPage": "Processing flexipage file: %s",
125+
"startingFlexiPageProcessing": "Starting to process flexipage: %s",
126+
"readFlexiPageContent": "Read file content, size: %s characters",
127+
"updatedModifiedContent": "updated content in file: %s",
128+
"generatedDiffForFile": "Generated diff for file: %s",
129+
"errorProcessingFlexiPage": "Error processing flexipage file: %s, %s",
130+
"flexipagesWithChanges": "Found %s flexipage files with changes",
131+
"omniGlobalAutoNumberPrefEnabled": "Successfully enabled OmniGlobalAutoNumberPref org preference",
132+
"errorEnablingOmniGlobalAutoNumberPref": "Error enabling OmniGlobalAutoNumberPref org preference",
133+
"performingPreMigrationChecks": "Performing pre-migration checks for Global Auto Number...",
134+
"preMigrationChecksPassed": "Pre-migration checks passed. Proceeding with Global Auto Number migration.",
135+
"preMigrationChecksFailed": "Pre-migration checks failed. Migration cannot proceed.",
136+
"globalAutoNumberPrefEnabledError": "Global Auto Number preference (OmniGlobalAutoNumberPref) is enabled. Please disable it before proceeding with migration.",
137+
"bothRollbackFlagsEnabledError": "Both RollbackIPChanges and RollbackDRChanges flags are enabled. Please disable both flags before proceeding with Global Auto Number migration.",
138+
"rollbackIPFlagEnabledError": "RollbackIPChanges flag is enabled. Please disable this flag before proceeding with Global Auto Number migration.",
139+
"rollbackDRFlagEnabledError": "RollbackDRChanges flag is enabled. Please disable this flag before proceeding with Global Auto Number migration.",
140+
"errorCheckingRollbackFlags": "Error checking rollback flags status.",
141+
"startingPostMigrationCleanup": "Starting post-migration cleanup for Global Auto Number...",
142+
"postMigrationCleanupCompleted": "Post-migration cleanup completed successfully.",
143+
"errorDuringPostMigrationCleanup": "Error during post-migration cleanup.",
144+
"globalAutoNumberNameChangeMessage": "Global Auto Number name has been modified to fit naming rules: %s",
145+
"duplicatedGlobalAutoNumberName": "Duplicated Global Auto Number name",
146+
"errorWhileUploadingGlobalAutoNumber": "An error occurred while uploading Global Auto Number: ",
147+
"startingGlobalAutoNumberAssessment": "Starting Global Auto Number assessment...",
148+
"foundGlobalAutoNumbersToAssess": "Found %s Global Auto Numbers to assess",
149+
"unexpectedError": "An unexpected error occurred during processing",
150+
"migrationValidationFailed": "Post Migration validation failed.",
151+
"incompleteMigrationDetected": "Incomplete migration detected. Source objects: %s, Target objects: %s."
116152
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-omnistudio-migration-tool",
33
"description": "This SFDX plugin migrates FlexCard, OmniScript, DataRaptor, and Integration Procedure custom objects to standard objects.",
4-
"version": "2.0.0-beta.20",
4+
"version": "2.0.0-rc.2",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

0 commit comments

Comments
 (0)