Skip to content

Commit c810bb1

Browse files
Merge pull request #327 from sf-kishore-kurri/u/kkurri/omt-readme
fix: update README
2 parents b612aac + 01e1f2d commit c810bb1

File tree

1 file changed

+70
-16
lines changed

1 file changed

+70
-16
lines changed

README.md

Lines changed: 70 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,45 @@
11
# OmniStudio Migration Assistant
22

3+
The Omnistudio Migration Assistant is a command-line interface (CLI) plugin that you install via Salesforce CLI. It creates records for your omnistudio components on the Salesforce standard objects.
4+
35
### Before You Begin
46

5-
Read and follow the directions in the Omnistudio migration documentation: https://help.salesforce.com/s/articleView?id=sf.os_migrate_omnistudio_custom_objects_to_standard_objects.htm&type=5
7+
- Review the migration phases in [Migration Process from Omnistudio for Managed Packages to Omnistudio](https://help.salesforce.com/s/articleView?id=xcloud.os_migrate_omnistudio_custom_objects_to_standard_objects.htm&language=en_US&type=5)
8+
9+
- Install Salesforce CLI on your computer. See : [Install Salesforce CLI](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm).
10+
11+
## Install and Run the Omnistudio Migration Assistant
12+
13+
1. Install SF cli using the official documentation located [here](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm).
14+
2. Authenticate Salesforce CLI in your migration sandbox (the org you are going to use for development) using the `sf org login web` command and then enter your username and password in the new browser tab that appears. See [Salesforce CLI Command Reference org login Commands](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_org_commands_unified.htm).
15+
16+
`sf org login web --instance-url=<Org URL>`
17+
18+
When prompted, enter your username and password, and connect. The command-line interface shows the message "Authentication Successful"
619

7-
## Running SFDX plugin
20+
For example:
21+
`username@userdomain ~ % sf org login web --instance-url=https://usa794org-5b.my.salesforce.com`
822

9-
1. Install SFDX cli using the official documentation located [here](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm).
10-
2. Authenticate your SFDX cli into the org you are going to use for development. You can follow authentication steps [here](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_auth_web.htm).
11-
3. In a new terminal session, install the plugin using the following command
23+
You then see the authorization message.
24+
Successfully authorized [email protected] with org ID 00DHp000004ArLWMA0
25+
26+
You can also authenticate using a consumer key (client ID) and secret key through connected apps. See [Authorization Through Connected Apps and OAuth 2.0](<[text](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_oauth_and_connected_apps.htm)>).
27+
28+
3. In a new terminal session, Install the Omnistudio Migration Assistant by running the `sf plugins install` command. For example
1229

1330
```
14-
sfdx plugins:install @salesforce/plugin-omnistudio-migration-tool
31+
sf plugins install @salesforce/plugin-omnistudio-migration-tool@2.0.0-beta.13
1532
```
1633

17-
4. To run the migration assistant, run the following command from your command line tool:
34+
4. Run the Omnistudio Migration Assistant from the Salesforce CLI:
1835

1936
```
37+
// To assess everything without migrating
38+
sfdx omnistudio:migration:assess -u [email protected]
39+
2040
// To migrate everything
2141
sfdx omnistudio:migration:migrate -u [email protected]
2242
23-
// To assess everything without migrating
24-
sfdx omnistudio:migration:assess -u [email protected]
2543
2644
// To migrate/assess specific components: FlexCards, DataMappers, Integration Procedures, or OmniScripts, add the following parameters:
2745
--only=dr
@@ -39,13 +57,13 @@ sfdx omnistudio:migration:assess -u [email protected]
3957
--namespace=VLOCITY_PACKAGE_NAMESPACE
4058
```
4159

42-
5. An HTML page will be open in your default browser with the results of your migration/assessment job.
60+
5. An HTML page will be open in your default browser with the results of your migration/assessment reports.
4361

44-
### Usage & parameters
62+
### Assess Usage & parameters
4563

4664
```
4765
USAGE
48-
$ sfdx omnistudio:migration:migrate [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
66+
$ sf omnistudio:migration:assess [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
4967
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
5068
5169
OPTIONS
@@ -68,16 +86,52 @@ OPTIONS
6886
-a, --allversions migrate all versions and not
6987
and not just the active ones.
7088
71-
--only=only specify components to migrate/assess:
89+
--only=only specify components to assess:
7290
dr (DataRaptors), ip (Integration Procedures),
7391
os (OmniScripts), fc (FlexCards)
7492
7593
--relatedobjects=relatedobjects specify related objects to assess:
76-
'apex' for Apex classes, 'lwc' for Lightning
77-
Web Components, or 'apex,lwc' for both types
94+
'apex' for Apex classes
95+
```
96+
97+
### Migrate Usage & parameters
98+
7899
```
100+
USAGE
101+
$ sf omnistudio:migration:migrate [-n <string>] [-f] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
102+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
103+
104+
OPTIONS
105+
-n, --namespace=namespace the namespace of the vertical package
106+
107+
-u, --targetusername=targetusername username or alias for the target
108+
org; overrides default target org
109+
110+
-v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
111+
org; overrides default dev hub org
112+
113+
--apiversion=apiversion override the api version used for
114+
api requests made by this command
115+
116+
--json format output as json
117+
118+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
119+
this command invocation
120+
121+
-a, --allversions migrate all versions and not
122+
and not just the active ones.
123+
124+
--only=only specify components to migrate:
125+
dr (DataRaptors), ip (Integration Procedures),
126+
os (OmniScripts), fc (FlexCards)
127+
128+
--relatedobjects=relatedobjects specify related objects to assess:
129+
'apex' for Apex classes
130+
```
131+
132+
> **Note:** LWC (Lightning Web Components) assessment/migration functionality is temporarily disabled in the current version. LWC features will be re-enabled in a future releases.
79133
80-
> **Note:** LWC (Lightning Web Components) migration functionality is temporarily disabled in the current version. This includes LWC migration, assessment, and report generation features. These features will be re-enabled in a future release. Apex migration functionality remains fully available. The `--relatedobjects` flag accepts all values ('apex', 'lwc', 'apex,lwc'), but LWC-related operations will not be executed.
134+
> Apex migration functionality remains fully available. The `--relatedobjects` flag only accepts values ('apex')
81135
82136
Terms:
83137
Notwithstanding anything stated in the terms and conditions agreed between Salesforce (‘SFDC’) and you (‘Customer’), the use of the OmniStudio Migration Assistant (‘Assistant’) is designed to facilitate the migration and it’s going to modify your custom code and by deploying and using the Assistant you hereby provide your consent to automate the migration process and enable a smooth transition. Customer shall access and use the Assistant only as permitted to the Customer and shall not compromise, break or circumvent any technical processes or security measures associated with the services provided by SFDC.

0 commit comments

Comments
 (0)