-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathamp.yaml
More file actions
48 lines (47 loc) · 1.75 KB
/
Copy pathamp.yaml
File metadata and controls
48 lines (47 loc) · 1.75 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
# This is the config file from the Quickstart tutorial at https://docs.withampersand.com/quickstart.
specVersion: 1.0.0
integrations:
- name: mailmonkey-salesforce
displayName: MailMonkey Salesforce Integration
provider: salesforce
read:
objects:
- objectName: contact
destination: contactWebhook
schedule: "*/30 * * * *" # every 30 minutes
backfill:
defaultPeriod:
fullHistory: true
# Always read these fields
requiredFields:
- fieldName: firstname
- fieldName: lastname
- fieldName: email
# Customer can decide if they want us to read these fields.
optionalFields:
- fieldName: salutation
- mapToName: linkedin_url
mapToDisplayName: LinkedIn URL
prompt: Which do field do you use for the LinkedIn URL for the contact?
- objectName: lead
destination: leadsWebhook
schedule: "*/30 * * * *" # every 30 minutes
backfill:
defaultPeriod:
fullHistory: true
requiredFields:
- fieldName: firstname
- fieldName: lastname
- fieldName: email
- fieldName: isconverted
# Allow the customer to pick a field to map to priority score
- mapToName: priority
mapToDisplayName: Priority Score
prompt: Which field do you use to track the priority of a lead?
# All other fields in a Lead are optional,
# Customers can pick from all of them.
optionalFieldsAuto: all
write:
objects:
# Create a new lead in Salesforce whenever we make an API request.
- objectName: lead