asset warranty plus warranty term update
This commit is contained in:
8
prepared_steps/9_upsert_assets/ValueMapping.csv
Normal file
8
prepared_steps/9_upsert_assets/ValueMapping.csv
Normal file
@ -0,0 +1,8 @@
|
||||
ObjectName,FieldName,RawValue,Value
|
||||
Asset,Kind_of_Energy__c,4,3
|
||||
Asset,Kind_of_Energy__c,5,3
|
||||
Asset,Serialnumber_Exception__c,350001,Missing
|
||||
Asset,Serialnumber_Exception__c,350002,Not Readable
|
||||
Asset,Serialnumber_Exception__c,350003,Not Readable
|
||||
Asset,Serialnumber_Exception__c,350004,Rejected by the system
|
||||
Asset,Serialnumber_Exception__c,350005,Missing
|
|
1
prepared_steps/9_upsert_assets/command.txt
Normal file
1
prepared_steps/9_upsert_assets/command.txt
Normal file
@ -0,0 +1 @@
|
||||
sf sfdmu run --sourceusername csvfile --targetusername rene.kasseboehmer@vaillant.de.devrene
|
35
prepared_steps/9_upsert_assets/export.json
Normal file
35
prepared_steps/9_upsert_assets/export.json
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"allOrNone": true,
|
||||
"excludeIdsFromCSVFiles": true,
|
||||
"objects": [
|
||||
{
|
||||
"query": "SELECT PKey__c FROM Location WHERE PKey__c != null AND ParentLocation.VisitorAddress.CountryCode = 'NL'",
|
||||
"operation": "Readonly",
|
||||
"externalId": "PKey__c"
|
||||
},{
|
||||
"query": "SELECT Product_Code__c FROM Product2 WHERE Product_Code__c != null",
|
||||
"operation": "Readonly",
|
||||
"externalId": "Product_Code__c",
|
||||
"master": false
|
||||
},{
|
||||
"query": "SELECT PKey__c FROM WarrantyTerm",
|
||||
"operation": "Readonly",
|
||||
"externalId": "PKey__c",
|
||||
"queryAllTarget": true,
|
||||
"master": false
|
||||
},{
|
||||
"query": "SELECT PKey__c,Product2Id,InstallDate,Name,Kind_of_Energy__c,Main_Product_Group__c,SerialNumber,Serialnumber_Exception__c,LocationId FROM Asset",
|
||||
"operation": "Insert",
|
||||
"externalId": "PKey__c",
|
||||
"master": true,
|
||||
"useValuesMapping": true,
|
||||
"useSourceCSVFile": true
|
||||
},{
|
||||
"query": "SELECT AssetId,StartDate,EndDate,WarrantyTermId FROM AssetWarranty",
|
||||
"operation": "Insert",
|
||||
"master": true,
|
||||
"useValuesMapping": true,
|
||||
"useSourceCSVFile": true
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user