vlocitydctools
v0.0.3
Published
Vlocity DC Tools
Downloads
47
Readme
Vlocity DC Tools (Beta)
Disclaimer: This tool is not an offical tool from Vlocity or Salesforce. It was created with the intent of distributing certain uitlility tools, Use it at your own risk.
Command List
Clean Commands
- vlocitydctools:clean:epcgkfix
- vlocitydctools:clean:omniscripts
- vlocitydctools:clean:templates
- vlocitydctools:clean:cards
- vlocitydctools:clean:datapacks
- vlocitydctools:clean:savedomniscripts
- vlocitydctools:clean:calcmatrix
- vlocitydctools:clean:objects
Compare/ Report
- vlocitydctools:compare:folders
- vlocitydctools:report:dependencies:local
- vlocitydctools:report:dependencies:remote
- vlocitydctools:report:activeomniscript
SF Source
- vlocitydctools:sfsource:createdeltapackage
- vlocitydctools:sfsource:createdeltapackagelocal
- vlocitydctools:sfsource:updatedeltahash
- vlocitydctools:sfsource:createmocklwcos
Login
Data
CMT
Copado
Install
$ sfdx plugins:install vlocitydctools # Requires SFDX-CLI
Install with no promt:
$ echo "yes" | sfdx plugins:install vlocitydctools # Requires SFDX-CLI
Usage
$ sfdx vlocitydctools:...
$ sfdx vlocitydctools:... --help
' '
Commands Info:
vlocitydctools:clean:epcgkfix
Sync Global Keys between two orgs (from source to target org) for the descrived objects. If Duplicates are detected, Global Keys wil be updated. Use -v,--check to only check and do not insert the records.
Notes:
- For now, this only works for CMT Package and without Product Versioning
- Please read carefully the documentation and check with the EPC implemtation team that this fits your needs and that the match Scenarios do apply for your implementation, Used it at your own risk.
- Avoid Using it in Production. Create a Full or partial copy if necessary.
Attribute Assignments Scenarios:
1. Non Override Attribute Assignments (IsOverride__c = false )
This will Match Records to Sync the GlobalKeys by using a key generated by the combination of these two Values:
AttributeAssignment.vlocity_namespace__ObjectId__c.vlocity_namespace__GlobalKey__c
AttributeAssignment.vlocity_namespace__AttributeId__r.vlocity_namespace__GlobalKey__c
2. Override Attribute Assignments (IsOverride__c = true )
This will query OverideDefinitions by using the considitions:
OverrideDefinition.vlocity_namespace__OverrideType__c = 'Attribute'
OverrideDefinition.vlocity_namespace__OverridingAttributeAssignmentId__c != null
OverrideDefinition.vlocity_namespace__OverriddenAttributeAssignmentId__c != null
And Match them across source and Target by the combination of these Values:
OverrideDefinition.vlocity_namespace__ProductHierarchyGlobalKeyPath__c
OverrideDefinition.vlocity_namespace__ProductId__r.vlocity_namespace__GlobalKey__c
OverrideDefinition.vlocity_namespace__PromotionId__r.vlocity_namespace__GlobalKey__c
OverrideDefinition.vlocity_namespace__PromotionItemId__r.vlocity_namespace__ProductId__r.vlocity_namespace__GlobalKey__c
OverrideDefinition.vlocity_namespace__PromotionItemId__r.vlocity_namespace__ContextProductId__r.vlocity_namespace__GlobalKey__c
OverrideDefinition.vlocity_namespace__PromotionItemId__r.vvlocity_namespace__OfferId__r.vlocity_namespace__GlobalKey__c
OverrideDefinition.vlocity_namespace__OverridingAttributeAssignmentId__r.vlocity_namespace__AttributeId__r.vlocity_namespace__Code__c
Then, Sync Global Keys of OverrideDefinition.vlocity_namespace__OverridingAttributeAssignmentId__c of source and target
Product Child Items Scenarios:
1. Non Override Product Child Item (IsOverride__c = false )
This will Match Records to Sync the GlobalKeys by using a key generated by the combination of these two Values:
ProductChildItem.vlocity_namespace__ParentProductId__r.vlocity_namespace__GlobalKey__c
ProductChildItem.vlocity_namespace__ChildProductId__r.vlocity_namespace__GlobalKey__c
2. Override Product Child Item (IsOverride__c = true )
This will query OverideDefinitions by using the considitions:
OverrideDefinition.vlocity_namespace__OverrideType__c = 'Attribute'
OverrideDefinition.vlocity_namespace__OverridingProductChildItemId__c != null
OverrideDefinition.vlocity_namespace__OverriddenProductChildItemId__c != null
And Match them across source and Target by the combination of these Values:
OverrideDefinition.vlocity_namespace__ProductHierarchyGlobalKeyPath__c
OverrideDefinition.vlocity_namespace__ProductId__r.vlocity_namespace__GlobalKey__c
OverrideDefinition.vlocity_namespace__PromotionId__r.vlocity_namespace__GlobalKey__c
OverrideDefinition.vlocity_namespace__PromotionItemId__r.vlocity_namespace__ProductId__r.vlocity_namespace__GlobalKey__c
OverrideDefinition.vlocity_namespace__PromotionItemId__r.vlocity_namespace__ContextProductId__r.vlocity_namespace__GlobalKey__c
OverrideDefinition.vlocity_namespace__PromotionItemId__r.vvlocity_namespace__OfferId__r.vlocity_namespace__GlobalKey__c
Then, Sync Global Keys of OverrideDefinition.vlocity_namespace__OverridingProductChildItemId__c of source and target
How to use a custom unique key for "OverrideDefinition" Match
You can pass as an additional parameter a .yaml file (-d ) to use custom unique key for "OverrideDefinition" Match sample File for PCI and AA.
Sample File:
PCI:
- namespace__ProductHierarchyGlobalKeyPath__c
- namespace__ProductId__r.namespace__GlobalKey__c
- namespace__PromotionId__r.namespace__GlobalKey__c
- namespace__PromotionItemId__r.namespace__ProductId__r.namespace__GlobalKey__c
- namespace__PromotionItemId__r.namespace__ContextProductId__r.namespace__GlobalKey__c
- namespace__PromotionItemId__r.namespace__OfferId__r.namespace__GlobalKey__c
AA:
- namespace__ProductHierarchyGlobalKeyPath__c
- namespace__ProductId__r.namespace__GlobalKey__c
- namespace__PromotionId__r.namespace__GlobalKey__c
- namespace__PromotionItemId__r.namespace__ProductId__r.namespace__GlobalKey__c
- namespace__PromotionItemId__r.namespace__ContextProductId__r.namespace__GlobalKey__c
- namespace__PromotionItemId__r.namespace__OfferId__r.namespace__GlobalKey__c
- namespace__OverridingAttributeAssignmentId__r.namespace__AttributeId__r.namespace__Code__c
USAGE
$ sfdx vlocitydctools:clean:epcgkfix -s <string> -t <string> [-p cmt] [-c] [-a] [-v]
OPTIONS
-p, --package=package Vlocity Package Type, Options:
'cmt' or 'ins' (Optional)
-s, --source=source Source Org Alias or username
-t, --target=target Target Org Alias or username
-c, --pci=pci Match Product Chield Items GK
(Optional)
-a, --aa=aa Match Attribuyte Assigments GK
(Optional)
-v, --check=check Do not insert Updated Records
-d, --definitions=definitions YAML file Name to Override the
unique key for "OverrideDefinition"
Match
EXAMPLES
$ sfdx vlocitydctools:clean:epcgkfix -s [email protected] -t [email protected] -p cmt --pci --aa
$ sfdx vlocitydctools:clean:epcgkfix --source myOrg --target myOrg2 --aa --check
$ sfdx vlocitydctools:clean:epcgkfix --source myOrg --target myOrg2 --aa --check -d def.yaml
vlocitydctools:clean:omniscripts
Delete old versions of OmniScritps and Integration Procedures and leave N amount of latest versions Active versions will be ignored and wont get deleted.
USAGE
$ sfdx vlocitydctools:clean:omniscripts -u <string> -n <integer> -p <string>
OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-n, --numberversions=numberversions Number of most recent versions of
OmniScrits to keep for each one.
Has to be greater than 0.
-p, --package=package Vlocity Package Type, Options:
'cmt' or 'ins'
EXAMPLES
$ sfdx vlocitydctools:clean:omniscripts -u [email protected] -n 10 -p cmt
$ sfdx vlocitydctools:clean:omniscripts --targetusername [email protected] --numberversions 10 --package ins
vlocitydctools:clean:templates
Delete old versions of Templates and leave N amount of latest versions. Active versions will be ignored and wont get deleted.
USAGE
$ sfdx vlocitydctools:clean:templates -u <string> -n <integer> -p <string>
OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-n, --numberversions=numberversions Number of most recent versions of
Templates to keep for each one.
Has to be greater than 1.
-p, --package=package Vlocity Package Type, Options:
'cmt' or 'ins'
EXAMPLES
$ sfdx vlocitydctools:clean:templates -u [email protected] -n 5 -p cmt
$ sfdx vlocitydctools:clean:templates --targetusername [email protected] --numberversions 5 --package ins
vlocitydctools:clean:cards
Delete old versions of Cards and leave N amount of latest versions. Active versions will be ignored and wont get deleted.
USAGE
$ sfdx vlocitydctools:clean:cards -u <string> -n <integer> -p <string>
OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-n, --numberversions=numberversions Number of most recent versions of
cards to keep for each one.
Has to be greater than 1.
-p, --package=package Vlocity Package Type, Options:
'cmt' or 'ins'
EXAMPLES
$ sfdx vlocitydctools:clean:cards -u [email protected] -n 5 -p cmt
$ sfdx vlocitydctools:clean:cards --targetusername [email protected] --numberversions 5 --package ins
vlocitydctools:clean:datapacks
Delete old DataPacks Used by Vlocity Build Tool
USAGE
$ sfdx vlocitydctools:clean:datapacks -u <string> -p <string>
OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-p, --package=package Vlocity Package Type, Options:
'cmt' or 'ins'
EXAMPLES
$ sfdx vlocitydctools:clean:datapacks -u [email protected] -p cmt
$ sfdx vlocitydctools:clean:datapacks --targetusername [email protected] --package ins
vlocitydctools:clean:savedomniscripts
Delete old Saved OmniScripts
USAGE
$ sfdx vlocitydctools:clean:savedomniscripts -u <string> -p <string>
OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-p, --package=package Vlocity Package Type, Options:
'cmt' or 'ins'
EXAMPLES
$ sfdx vlocitydctools:clean:savedomniscripts -u [email protected] -p cmt
$ sfdx vlocitydctools:clean:savedomniscripts --targetusername [email protected] --package ins
vlocitydctools:compare:folders
Compare two local Vlocity DataPacks folder The output will be a CSV file with the results
USAGE
$ sfdx vlocitydctools:compare:folders -s <string>- t <integer>
OPTIONS
-s, --folder1=folder1 Vlocity Folder 1 to Compare
-t, --folder2=folder2 Vlocity Folder 2 to Compare
EXAMPLES
$ sfdx vlocitydctools:compare:folders -s vlocity1 -t vlocity2
$ sfdx vlocitydctools:compare:folders --folder1 vlocity1 --folder2 vlocity2
vlocitydctools:compare:packages
Compare Two Vlocity Metadata Folders. Gives Error if there is overlap
USAGE
$ sfdx vlocitydctools:compare:packages -s <string>- t <integer>
OPTIONS
-s, --folder1=folder1 Vlocity Folder 1 to Compare
-t, --folder2=folder2 Vlocity Folder 2 to Compare
EXAMPLES
$ sfdx vlocitydctools:compare:packages: -s vlocity1 -t vlocity2
$ sfdx vlocitydctools:compare:packages --folder1 vlocity1 --folder2 vlocity2
vlocitydctools:report:dependencies:local
From a local DataPack export foler, for Both OmniScript and VIP, 1st Level of dependencies:
- DataRaptors
- OmniScripts
- VIPS
- Remote Calls
- VlocityUITemplate
The output will be a CSV file with the results
USAGE
$ sfdx vlocitydctools:report:dependencies:local -f <string>
OPTIONS
-f, --folder=folder Vlocity Folder Name
EXAMPLES
$ sfdx vlocitydctools:report:dependencies:local -f vlocity
$ sfdx vlocitydctools:report:dependencies:local --folder vlocity
vlocitydctools:report:dependencies:remote
From remote Alias connection, for Both OmniScript and VIP, 1st Level of dependencies:
- DataRaptors
- OmniScripts
- VIPS
- Remote Calls
- VlocityUITemplate
The output will be a CSV file with the results
USAGE
$ sfdx vlocitydctools:report:dependencies:remote -u <string> -p <string>
OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-p, --package=package Vlocity Package Type, Options:
'cmt' or 'ins'
EXAMPLES
$ sfdx vlocitydctools:report:dependencies:remote -u SIT -p cmt
$ sfdx vlocitydctools:report:dependencies:remote --targetusername [email protected] --packageType ins
vlocitydctools:report:activeomniscript
Check All OmniScrips are Active
USAGE
$ sfdx vlocitydctools:report:activeomniscript -u <string> -p <string>
OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-p, --package=package Vlocity Package Type, Options:
'cmt' or 'ins'
EXAMPLES
$ sfdx vlocitydctools:report:activeomniscript -u [email protected] -p cmt
$ sfdx vlocitydctools:report:activeomniscript --targetusername [email protected] --package ins
vlocitydctools:sfsource:createdeltapackage
Based on Vlocity Build Tool saved Hash in the Environment, Create Delta package for salforce. Note: Only works for SFDX Source Format
--gitcheckkeycustom and --customsettingobject can be used to use a Custom "Custom Settings". For this: Create a new Custom Setting, the API name will be --customsettingobject. This Custom Setting will have two fields "Name" and the value of it will be the "--gitcheckkeycustom" and a field "Value__c" that will contain tha hash.
USAGE,
$ sfdx vlocitydctools:sfsource:createdeltapackage -u <string> -d<string> [-k <string>] [-p <string>] [-c <string> -v <string>]
OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-p, --package=package (Optional) Vlocity Package Type, Options:
'cmt' or 'ins'
-d, --sourcefolder=sourcefolder Salesfroce sorce folder name
-k, --gitcheckkey=gitcheckkey (Optional) Key when using gitCheckKey with Build Tool
OPTIONS IF USING a Custom "Custom Settings"
-c, --customsettingobject=customsettingobject (Optional) Optional Custom Setting API Object Name
-v, --gitcheckkeycustom=gitcheckkeycustom (Optional) Custom Setting record Name
-h, --valuecolumn=valuecolumn (Optional) API Field Name Where hash is stored
EXAMPLES
$ sfdx vlocitydctools:sfsource:createdeltapackage -u [email protected] -p cmt -d force-app
$ sfdx vlocitydctools:sfsource:createdeltapackage --targetusername [email protected] --package ins --sourcefolder force-app
$ sfdx vlocitydctools:sfsource:createdeltapackage --targetusername [email protected] --package ins --sourcefolder force-app --gitcheckkey EPC
$ sfdx vlocitydctools:sfsource:createdeltapackage --targetusername [email protected] --sourcefolder force-app --gitcheckkeykustom VBTDeployKey --customsettingobject DevOpsSettings__c
vlocitydctools:sfsource:createdeltapackagelocal
Create Delta package for salforce based on HEAD and Input Hash. Note: Only works for SFDX Source Format
USAGE,
$ sfdx vlocitydctools:sfsource:createdeltapackagelocal -h <string> -d<string>
OPTIONS
-h, --hash=hash Git Hash Value
-d, --sourcefolder=sourcefolder Salesfroce sorce folder name
EXAMPLES
$ sfdx vlocitydctools:sfsource:createdeltapackagelocal -h f2a6eee1b509c3edd33ab070148be48e41242846 -d force-app
$ sfdx vlocitydctools:sfsource:createdeltapackagelocal --hash f2a6eee1b509c3edd33ab070148be48e41242846 --sourcefolder salesforce_sfdx
vlocitydctools:sfsource:updatedeltahash
When using a Custom "Custom Setting" Object for delta Package. You can update the hash in the environment using this command.
USAGE,
$ sfdx vlocitydctools:sfsource:createdeltapackage -u <string> -p <string> -d<string> [-h <string>]
OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-c, --customsettingobject=customsettingobject Custom Setting Object API Name
-v, --gitcheckkeycustom=gitcheckkeycustom Custom Setting record Name
-h, --customhash=customhash (Optional) Custom Hash Value to be updated
-a, --valuecolumn=valuecolumn (Optional) Custom Value Column
EXAMPLES
$ sfdx vlocitydctools:sfsource:updatedeltahash -c DevOpsSettings__c -v DeployKey -u [email protected]
$ sfdx vlocitydctools:sfsource:updatedeltahash --customsettingobject DevOpsSettings__c --gitcheckkeycustom DeployKey --targetusername [email protected]
$ sfdx vlocitydctools:sfsource:updatedeltahash --customsettingobject DevOpsSettings__c --gitcheckkeycustom DeployKey --targetusername [email protected] --customhash 0603ab92ff7cf9adf7ca10228807f6bb6b57a894
vlocitydctools:clean:calcmatrix
This command will delete all rows of the Calculation Matrix Version based on the given ID as input. Then, it will update the version record with Dummy data so any other version can be Deployed. The Calculation Matrix Version can be delete after 24 hors due to Salesforce sweeper restrictions. You can assign the user used to run this comnad a Permisison set or a profile that has the Bulk API hard delte to avoid the need of deleting the rows from the recycle bin.
USAGE
$ sfdx vlocitydctools:clean:calcmatrix -u <string> -i <string> -P<string>
OPTIONS
-u, --targetusername=targetusername username or alias for the target
org; overrides default target org
-i, --matrixid=matrixid Matrix Version ID to be clean
-p, --package=package Vlocity Package Type, Options:
'cmt' or 'ins'
-h, --hard Use Hard Delete
EXAMPLES
$ sfdx vlocitydctools:clean:calcmatrix -u [email protected] -i a0dR000000kxD4qIAE -p ins
$ sfdx vlocitydctools:clean:calcmatrix --targetusername [email protected] --matrixid a0dR000000kxD4qIAE --package cmt
vlocitydctools:auth:login
Create an Alias using User and Password, (Token if needed as wells) Note: This will not create an Alias with OAuth Connnection so the connection will expired.
USAGE
$ sfdx vlocitydctools:auth:login -u <string> -p <string> -a <string> [-l <string>] [-t <string>]
OPTIONS
-u, --username=username Username to Autenticate
-p, --password=password Password
-t, --token=token Token
-l, --url=url Org Url, Default: https://login.salesforce.com
-a, --alias=alias Alias
EXAMPLES
$ sfdx vlocitydctools:auth:login -u [email protected] -p 'pass123' -t eXUTfa9gpIxfaytnONqnlWFG -a dev1
$ sfdx vlocitydctools:auth:login --username [email protected] --password 'pass123' --url 'https://test.salesforce.com' --alias dev1
vlocitydctools:clean:objects
Delets SObjects from org defined by File. SOQL 'WHERE' can be specified
Sample File for EPC: (May not represent 100% EPC)
Objects:
namespace__OrderAppliedPromotionItem__c:
namespace__OrderAppliedPromotion__c:
namespace__OrderDiscountItem__c:
namespace__OrderGroup__c:
namespace__OrderDiscount__c:
namespace__OrderPriceAdjustment__c:
namespace__OrderMember__c:
namespace__OrderItemRelationship__c:
namespace__OrderProductRollup__c:
namespace__OrderRelationship__c:
OrderItem:
Order:
WorkOrder:
WorkOrderLineItem:
namespace__OrchestrationDependency__c:
namespace__OrchestrationDependencyDefinition__c:
namespace__OrchestrationItem__c:
namespace__OrchestrationItemDefinition__c:
namespace__OrchestrationItemSource__c:
namespace__OrchestrationScenario__c:
namespace__OrchestrationPlan__c:
namespace__OrchestrationPlanDefinition__c:
namespace__OrchestrationQueue__c:
namespace__OrchestrationQueueAssignmentRule__c:
namespace__OrchestrationSchedulerImplementation__c:
namespace__ThorOrchestrationQueue__c:
namespace__CompiledAttributeOverride__c:
namespace__OverrideDefinition__c:
namespace__AttributeAssignment__c:
namespace__ProductChildItem__c:
namespace__ObjectFieldAttribute__c:
namespace__ObjectElement__c:
namespace__ObjectFacet__c:
namespace__ObjectSection__c:
namespace__ObjectLayout__c :
namespace__ObjectClass__c:
namespace__UISection__c:
namespace__UIFacet__c:
namespace__PriceListEntry__c:
namespace__PriceList__c:
namespace__PricingElement__c:
namespace__Attribute__c:
namespace__AttributeCategory__c:
namespace__PicklistValue__c:
namespace__Picklist__c:
namespace__CalculationProcedureVariable__c:
namespace__CalculationProcedureStep__c:
namespace__CalculationProcedureVersion__c:
namespace__CalculationProcedure__c:
namespace__CalculationMatrixRow__c:
namespace__CalculationMatrixVersion__c:
namespace__CalculationMatrix__c:
namespace__ProductAvailability__c:
namespace__ProductEligibility__c:
namespace__ProductRelationshipType__c:
namespace__ProductRelationship__c:
namespace__OpportunityLineItemRelationship__c:
namespace__Interface_ProductAttribute__c:
namespace__ProductConfigurationProcedure__c:
namespace__QuoteLineItemRelationship__c:
namespace__PromotionItem__c:
namespace__Promotion__c:
namespace__CatalogRelationship__c:
namespace__CatalogProductRelationship__c:
namespace__Catalog__c:
Product2: ProductCode like 'PHONE_%'
USAGE
$ sfdx vlocitydctools:clean:objects -u <string> -p <string> -d <string> [-q true|false] [-r true|false] [-s true|false]
OPTIONS
-u, --username=username Username to Autenticate
-p, --package=package Vlocity Package Type, Options:
'cmt' or 'ins' (Optional)
-d, --datafile=datafile File with list Of Objects
-q, --onlyquery=onlyquery Dont Delete Any Object, just do queries.
Default: false
-r, --retry=retry Retry all Deletes if Error
Default: false
-s, --save=save Save Batch Results in File
Default: false
-h, --hard=hard Hard delete all records
This needs the System permission:
"Bulk API Hard Delete"
-t, --polltimeout=polltimeout Bulk API Poll time out in Minutes (Default 60)
EXAMPLES
$ sfdx vlocitydctools:clean:objects -u [email protected] -p ins -d objects.yaml
$ sfdx vlocitydctools:clean:objects --targetusername [email protected] --dataFile objects.yaml
$ sfdx vlocitydctools:clean:objects --targetusername [email protected] --dataFile objects.yaml -q true
$ sfdx vlocitydctools:clean:objects --targetusername [email protected] --dataFile objects.yaml -r true
$ sfdx vlocitydctools:clean:objects --targetusername [email protected] --dataFile objects.yaml -q true
vlocitydctools:sfsource:createmocklwcos
Deploy Empty LWC for Missing OmniScript
USAGE
$ sfdx vlocitydctools:sfsource:createmocklwcoss -d <string> -u <string>
OPTIONS
-u, --username=username Username to Autenticate
-d, --datapacksfolder=datapacksfolder DataPacks folder
EXAMPLES
$ sfdx vlocitydctools:sfsource:createmocklwcos -u [email protected] -d vlocity
$ sfdx vlocitydctools:sfsource:createmocklwcos --targetusername [email protected] --datapacksfolder vlocity
vlocitydctools:data:upsert
Upsert Data From CSV
USAGE
$ sfdx vlocitydctools:data:upsert -u <string> -f <string> -o <string> -i <string>
OPTIONS
-u, --username=username Username to Autenticate
-f, --csv=csv Path to the CSV File
-o, --object=object Object API Name
-i, --id=id API Name of the field to Upsert
EXAMPLES
$ sfdx vlocitydctools:data:upsert -u [email protected] -f accounts.csv -o Account -i Name2__c
$ sfdx vlocitydctools:data:upsert --targetusername --csv accounts.csv --object Account --id Name2__c
vlocitydctools:data:updatefield
Bulk Update a field with one value. Optional "WHERE" to filter records
USAGE
$ sfdx vlocitydctools:data:updatefield -o <string> -f <string> -v <string> [-w <string>] -u <string>
OPTIONS
-f, --field=field API Name of the field to update
-o, --object=object API Name of the Object
-u, --targetusername=targetusername username or alias for the target org; overrides default target org
-v, --value=value Value to update
-w, --where=where 'WHERE' to only update certain records (Optional)
EXAMPLES
$ sfdx vlocitydctools:data:updatefield -u [email protected] -o Product2 -f IsActive -v true
$ sfdx vlocitydctools:data:updatefield --targetusername [email protected] --object Product2 --field IsActive --value false --where "ProductCode LIKE 'VLO%'"
vlocitydctools:jobs:executejobs
CMT Jobs Automation (Only for CMT Package). Based on the Jobs file, it will run then in sequence.
Sample Jobs File
jobs:
- 'jobdelete:vlocity_cmt__CachedAPIResponse__c'
- 'EPCProductAttribJSONBatchJob'
- 'EPCFixCompiledAttributeOverrideBatchJob'
- '{"methodName":"startProductHierarchyJob"}'
- '{"methodName":"clearPlatformCache"}'
- '{"methodName":"refreshPricebook"}'
- '{"methodName":"populateCacheCAJob","selectedList":["ContextEligibilityGenerator","GetOffersHierarchyHelper","GetOffers","GetContainOffers","GetPrices","GetOfferDetails"]}'
##### Posible configuration:
#### Delete Records
# 'jobdelete:<Object API Name>'
#### Custom Apex Jobs:
# 'EPCProductAttribJSONBatchJob'
# 'EPCFixCompiledAttributeOverrideBatchJob'
#### CMT Admin Jobs:
# '{"methodName":"<Job>"}'
# 'startRootAccountJob'
# 'refreshBatchJobLists'
# 'refreshXLIBatchJobLists'
# 'resetInterfaceImplementations'
# 'mergeInterfaceImplementations'
# 'resetFieldMaps'
# 'startXLIBatchValidationJob'
# 'resetXLIBatchValidtionData'
# 'startAttributesBindingJob' // Aditional Parameters: 'objectNames');
# 'startRootProductChildItemJob'
# 'resetObjectMaps'
# 'createEpcObjectClasses'
# 'createEpcDefaultLayouts'
# 'deleteEpcDefaultLayouts'
# 'createDefaultPricingVariables'
# 'generateEPCGlobalKeys'
# 'startProductHierarchyJob'
# 'clearPlatformCache'
# 'refreshPriceBook' // Aditional Parameters: 'priceBookId'
# 'createDefContextualAdjData'
# 'startTranslationJob'
# 'loadDefaultObjectFieldsConfigMLS'
# 'startTranslationCacheJob'
# 'startConvertProductJSONToV2' // Aditional Parameters: 'convertProductBatchSize' and 'productFiltersListString'
# 'startConvertXliJSONToV2' // Aditional Parameters: 'convertXliInput', 'convertXliBatchSize' and 'xliFiltersListString';
# 'loadAPIMetadataCAJob'
# 'getCAJobList'
# 'populateCacheCAJob'
# 'startPopulateSellingPeriodDatesJob'
# 'populateMissingActionFieldInXLIs'
# 'startPopulateRequestedStartDatesJobs'
# 'startDeleteExpiredCacheJobs'
# 'startDeleteQuasiRecordsJobs'
# 'regenerateCacheAPIRecordsJobs'
# 'cacheMigrationJobs'
# 'getUpgradeData'
# 'startPopulateGKPathJobs'
# 'startUpdateEncryptAttrJob'
# 'createDefaultTimePolicy'
# 'startCreateRelationshipRecords' // Aditional Parameters: 'createRelationshipBatchSize' and 'createRelationshipHeaderFiltersListString'
# 'startReportNullSpecTypeBatchJob'
# 'startReportMismatchedSpecTypeBatchJob'
# 'startPopulateCatalogCodeBatchJob'
USAGE
$ sfdx vlocitydctools:jobs:executejobs [-j <string>] [-p <integer>] [-s] [-m] [-l] [-u <string>]
OPTIONS
-j, --jobs=jobs Job File
-r, --remoteapex Use remote Apex
-m, --more Verbose logs
-p, --pooltime=pooltime Pooltime in seconds (default 10)
-s, --stoponerror Stop When Error
-u, --targetusername=targetusername username or alias for the target org; overrides default target org
EXAMPLES
$ sfdx vlocitydctools:jobs:executejobs -u [email protected] -j jobs.yaml -p 20
$ sfdx vlocitydctools:jobs:executejobs --targetusername [email protected] --jobs jobs.yaml --pooltime 20
$ sfdx vlocitydctools:jobs:executejobs --targetusername [email protected] --jobs jobs.yaml --pooltime 20 --remoteapex
vlocitydctools:copado:copadomanifest
Creates Json for bulk commit a User Story in Copado
USAGE,
$ sfdx vlocitydctools:copado:copadomanifest -p <string> [-n <string>] [-s]
OPTIONS
-p, --package=package Package.xml (or manifest.yaml when --vlocity) file location (required)
-n, --username=username Username to use (Optional, Default: "None")
-s, --vlocity Is a Vlocity Manifest (.yaml File)
EXAMPLES
$ sfdx vlocitydctools:copado:copadomanifest -p package.xml
$ sfdx vlocitydctools:copado:copadomanifest --package package.xml --username User123 --vlocity
vlocitydctools:copado:copadolist
Creates Json to Bulk Update an User Story from a List of . Text File
USAGE,
$ sfdx vlocitydctools copado copadolist -m <string> [-n <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
-m, --manifest=<value> (required) List.txt file location
-n, --username=<value> Username to use
EXAMPLES
$ sfdx vlocitydctools:copado:copadolist -m manifest.txt
$ sfdx vlocitydctools:copado:copadolist --manifest manifest.txt --username User123