asset warranty plus warranty term update
This commit is contained in:
32
prepared_steps/8_update_warrantyterms/export.json
Normal file
32
prepared_steps/8_update_warrantyterms/export.json
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
"allOrNone": true,
|
||||
"objects": [
|
||||
{
|
||||
"query": "SELECT Id FROM WarrantyTerm WHERE PKey__c = null",
|
||||
"operation": "Update",
|
||||
"beforeUpdateAddons": [
|
||||
{
|
||||
"module": "core:RecordsTransform",
|
||||
"description": "Copies Id of record into Pkey__c field",
|
||||
"args": {
|
||||
"fields": [
|
||||
{
|
||||
"alias": "sourceIdFromWarrantyTerm",
|
||||
"sourceObject": "WarrantyTerm",
|
||||
"sourceField": "Id",
|
||||
"lookupSource": "source"
|
||||
}
|
||||
],
|
||||
"transformations": [
|
||||
{
|
||||
"targetObject": "WarrantyTerm",
|
||||
"targetField": "PKey__c",
|
||||
"formula": "formula.sourceIdFromWarrantyTerm"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user