-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.yaml
More file actions
101 lines (98 loc) · 3.04 KB
/
Copy pathsettings.yaml
File metadata and controls
101 lines (98 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# List of fields to be excluded during export
excluded-fields:
- OwnerId
- IsDeleted
- CreatedDate
- CreatedById
- LastModifiedDate
- LastModifiedById
- SystemModstamp
- LastViewedDate
- LastReferencedDate
- UserRecordAccessId
- RecordVisibilityId
# Name of unique external ID field
# This field must exist in each table managed by DDP Migrator
unique-key: DDP_Migrator_Id__c
# Loop triggers will fire on update/upsert which might cause the following error
# "execution of BeforeUpdate caused by: System.LimitException: Apex CPU time limit exceeded"
# The tool will update records in batches to avoid this issue
update-batch-size: 100
# List of objects/tables
tables:
# Main table containing DDP name, type, etc
# Object and field names are case-sensitive
Loop.Loop__DDP__c:
# Name of one or more columns to use to name a file
name: Name
# Table name alias to be used to name child directory (file in case of parent table)
alias: DDP
import-order: 0
# Whether or not recreate records when importing/pushing DDPs
recreate-on-import: false
# List of fields and their import/export handlers
# Handler classes are located in fieldhandlers directory
field-handlers:
RecordTypeId:
class: RecordTypeIdHandler
Loop__Security__c:
class: LoopSecurityHandler
# Files/templates attached to DDP
Loop.Loop__DDP_File__c:
name: Name
alias: Files
import-order: 1
recreate-on-import: false
# Master-detail or lookup fields in format 'field name: Namespace.Object.Field'
parent-relationship:
field: Loop__DDP__c
parent-table: Loop.Loop__DDP__c
parent-field: DDP_Migrator_Id__c
field-handlers:
Loop__Document_ID__c:
class: LoopDocumentIdHandler
# Delivery options
Loop.Loop__DDP_Integration_Option__c:
name: Name
alias: Delivery_Options
import-order: 2
recreate-on-import: false
parent-relationship:
field: Loop__DDP__c
parent-table: Loop.Loop__DDP__c
parent-field: DDP_Migrator_Id__c
field-handlers:
RecordTypeId:
class: RecordTypeIdHandler
# Relationships
Loop.Loop__Related_Object__c:
# In this case file will be named <Loop__Index__c>-<Alias>-<Name>
name: [Loop__Index__c, Loop__Related_Object_Alias__c, Name]
alias: Relationships
import-order: 3
recreate-on-import: true
parent-relationship:
field: Loop__DDP__c
parent-table: Loop.Loop__DDP__c
parent-field: DDP_Migrator_Id__c
field-handlers:
Loop__Parent_Object__c:
class: LoopParentObjectHandler
retry-failed: true
Loop__Parent_Relationship__c:
class: LoopParentObjectHandler
retry-failed: true
# PDF Stamps
Loop.Loop__PDF_Stamp__c:
name: Name
alias: PDF_Stamps
import-order: 4
recreate-on-import: true
parent-relationship:
field: Loop__DDP__c
parent-table: Loop.Loop__DDP__c
parent-field: DDP_Migrator_Id__c
field-handlers:
Loop__DDP_Files__c:
class: LoopDDPFilesHandler
retry-failed: true