Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MsSQL to Salesforce Template for CP4i #327

Open
wants to merge 2 commits into
base: cp4i-templates
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: trigger-action
trigger-interfaces:
trigger-interface-1:
connector-type: mssql
type: event-trigger
triggers:
CREATED_POLLER:
input-context:
data: dbo_Contacts
assembly:
$ref: '#/integration/assemblies/assembly-1'
options:
subscription:
createdField: createdat
updatedField: lastupdatedat
timeFormat: YYYY-MM-DDTHH:mm:ssZ
timeZone: UTC
pollingInterval: '5'
isCreatedQueryable: true
action-interfaces:
action-interface-1:
type: api-action
business-object: Contact
connector-type: salesforce
actions:
CREATE: {}
assemblies:
assembly-1:
assembly:
execute:
- create-action:
name: Salesforce Create contact
target:
$ref: '#/integration/action-interfaces/action-interface-1'
map:
mappings:
- Email:
template: '{{$Trigger.email}}'
- FirstName:
template: '{{$Trigger.firstname}}'
- LastName:
template: '{{$Trigger.lastname}}'
- OtherCity:
template: '{{$Trigger.city}}'
- OtherCountry:
template: '{{$Trigger.country}}'
- OtherState:
template: '{{$Trigger.state}}'
- Phone:
template: '{{$Trigger.phone}}'
- Salutation:
template: '{{$Trigger.salutation}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
name: Sync Contacts from MsSQL to Salesforce
models: {}