-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-example.yaml
More file actions
65 lines (56 loc) · 1.55 KB
/
Copy pathconfig-example.yaml
File metadata and controls
65 lines (56 loc) · 1.55 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
# Salesforce Data Extraction Configuration
#
# Usage:
# 1. Login: sf org login web --alias my-org
# 2. Run: python extract.py
# 3. Override mode: python extract.py --mode incremental
# Salesforce org alias (from sf org login web --alias <alias>)
org_alias: "my-org"
# Output directory — CSV files are written directly to this path.
output_dir: "./output"
# Mode: "full" (all records) | "incremental" (since last run)
mode: "full"
# Record limit per object for "verify" task (mise run verify)
verify_limit: 10
# Objects to extract
# - name: Salesforce API name of the object
# - fields: optional field list; omit to fetch all fields
# - include: optional relationship fields (dot notation, e.g. CreatedBy.Name)
objects:
- name: Account
fields:
- Id
- Name
- Industry
- BillingCity
- BillingCountry
- CreatedDate
- LastModifiedDate
include:
- CreatedBy.Name
- LastModifiedBy.Name
- name: Contact
fields:
- Id
- FirstName
- LastName
- Email
- Phone
- AccountId
- LastModifiedDate
- name: Opportunity
fields:
- Id
- Name
- StageName
- Amount
- CloseDate
- AccountId
- LastModifiedDate
# Example custom object — no field list specified (will fetch all fields)
# - name: Custom_Object__c
# Example with approval history export
# Produces an additional ApprovalHistory_<ObjectName>.csv with
# denormalized ProcessInstance + ProcessInstanceNode data.
# - name: Account
# approval_history: true