Command Options/Arguments
|
Description
|
||
---|---|---|---|
Command:
$ sfdx svmx:retrieve [-t <array>] [-p <string>] [-u <string>] [-d] [-c <string>] [--apiversion <string>] [--json]
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] |
|||
-p
|
Used to specify the path where the root svmx folder is to be created to store the retrieved JSON files.
|
||
-t
|
Used to specify the Asset 360 configuration types to retrieve.
|
||
-u
|
Used to specify the org username or the alias of the org from which configurations are retrieved. This value overrides the default org.
|
||
-d
|
Used to specify that the dependent items must be retrieved.
|
||
-c
|
Used to specify the name of the JSON file that contains information as to which configurations must be retrieved.
The following is a sample JSON file:
{"expressions": [
{"developerName":"RO_Ent_rule_12021-10-20T09:58:41.485Z", "configurationType":"Expression" }, { "name" :"A360 - Return Order - Not Closed Nor Canceled", "developerName":"RORD_Not_Closed_Canceled_Expression", "configurationType":"Expression" } ], "objectMappings": [ { "name":"A360 - Work Order to Product Request Line Item (Loaner)", "developerName" :"WORD_PRLI_Loaner_Mapping", "configurationType":"Mapping" } ], "screenDesigners": [ {"name":"A360 - Manage Loaner Return Order with Line Items", "developerName":"RORD_Manage_Loaner_Line_Items_Screen", "configurationType":"ScreenDesigner" } ], "transactions": [ {"name":"A360 - Manage Work Order Review", "developerName":"WORD_Manage_Review_Transaction", "configurationType":"Transaction" } ], "wizards": [ ], : [ ], "pricebookAssignmentRules": [ ], "entitledServiceAssignmentRules": [ {"name": "RO_Ent rule 1", "developerName":"RO_Ent_rule_1", "configurationType":"EntitledServiceAssignmentRules" } ], "pscConfigurations": [ ], "assetTimelines": [ ], "assetHierarchies": [ ], "translations": [ ], "technicalAttributes": [ ] } |
||
--apiversion
|
Used to specify the Salesforce API version. This overrides the API version used for API requests made by this command.
|
||
--json
|
Used to specify that the output format is JSON.
|
||
--loglevel
|
Used to specify the logging level. The available options are (trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL).
The default logging level is WARN.
|
Command
|
Description
|
Examples
|
---|---|---|
svmx:retrieve
|
Used to retrieve all the available configurations.
|
sfdx svmx:retrieve -u user@salesforce.com
sfdx svmx:retrieve -u user@salesforce.com -t Expression,Mapping,TechnicalAttribute
sfdx svmx:retrieve -u user@salesforce.com -c configuration.json
|
svmx:retrieve:assethierarchy
|
Used to retrieve asset hierarchy configurations.
|
sfdx svmx:retrieve:assethierarchy -u user@salesforce.com
|
svmx:retrieve:assettimeline
|
Used to retrieve asset hierarchy configurations.
|
sfdx svmx:retrieve:assettimeline -u user@salesforce.com
|
svmx:retrieve:entitlementrule
|
Used to retrieve auto-entitlement rules.
|
sfdx svmx:retrieve:entitlementrule -u user@salesforce.com
|
svmx:retrieve:esarule
|
Used to retrieve entitled service assignment rules.
|
sfdx svmx:retrieve:esarule -u user@salesforce.com
|
svmx:retrieve:expression
|
Used to retrieve expressions.
|
sfdx svmx:retrieve:expression -u user@salesforce.com
|
svmx:retrieve:mapping
|
Used to retrieve mappings.
|
sfdx svmx:retrieve:mapping -u user@salesforce.com -n <DEVELOPER_NAME,...>
|
svmx:retrieve:parule
|
Used to retrieve pricebook assignment rules.
|
sfdx svmx:retrieve:parule -u user@salesforce.com
|
svmx:retrieve:screen
|
Used to retrieve screen configurations.
|
sfdx svmx:retrieve:screen -u user@salesforce.com
|
svmx:retrieve:transaction
|
Used to retrieve transactions.
|
sfdx svmx:retrieve:transaction -u user@salesforce.com
|
svmx:retrieve:wizard
|
Used to retrieve wizards.
|
sfdx svmx:retrieve:wizard -u user@salesforce.com
|
svmx:retrieve:psc
|
Used to retrieve PSC configurations.
|
sfdx svmx:retrieve:psc -u user@salesforce.com
|
svmx:retrieve:translation
|
Used to retrieve translations.
|
sfdx svmx:retrieve:translation -u user@salesforce.com
|
svmx:retrieve:techattr
|
Used to retrieve asset technical attributes.
|
sfdx svmx:retrieve:techattr -u user@salesforce.com
|