This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MigrateProducts { | |
public void process() { | |
List<CommandVO> list = new ArrayList<CommandVO>(); | |
list.add(new CommandVO("create", "Products.json")); | |
list.add(new CommandVO("create", "PricebookEntry_standard.json")); | |
list.add(new CommandVO("create", "PricebookEntry_nonstandard.json")); | |
MigrableObjectFactory.migrate(list); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"parent": "FulfillmentProvider__c", | |
"children": [ | |
{ | |
"parentMappedField": "FulfillmentProvider__c", | |
"childObject": "FulfillmentParameterDefinition__c", | |
"sequence": 1 | |
} | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"parent": "Pricebook2", | |
"where": " IsStandard = false ", | |
"unmappedFields": ["IsStandard", "IsArchived"], | |
"children": [ | |
{ | |
"parentMappedField": "Pricebook2Id", | |
"childObject": "PricebookEntry", | |
"where": " Pricebook2.IsActive=true And Pricebook2Id != null And Product2Id != null ", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SOURCE | |
source.sfdc.login=username@salesforce.com | |
source.sfdc.password=****** | |
source.env.endpoint=https://test.salesforce.com/services/Soap/u/41.0/ | |
# TARGET | |
target.sfdc.login=username@salesforce.com.sandboxorg | |
target.sfdc.password=****** | |
target.env.endpoint=https://test.salesforce.com/services/Soap/u/41.0/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Key | Description | |
---|---|---|
parent | Api name of the parent object | |
externalIdField | [optional]: If you have external Id field; you can declare them | |
where | [optional]: You can filter the records using where clause | |
children | [optional]: Array of children objects | |
refresh | [optional]: Set this to true for hierarchical relationships | |
parentMappedField | Api name of parent object relationship | |
childObject | Api name of child object | |
externalIdField | [optional]: If you have external Id field; you can declare them |