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

New Template for Microsoft SQL Server #326

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
To refer to these instructions while editing the flow, open [the GitHub page](https://github.com/ot4i/app-connect-templates/blob/master/resources/markdown/Store%20the%20contact%20details%20in%20Salesforce%20when%20a%20new%20contact%20record%20is%20added%20to%20Microsoft%20SQL%20Server_instructions.md) (opens in a new window).

1. Click **Create flow** to start using the template.
2. Connect to your [Salesforce account](https://ibm.biz/ach2salesforce).
3. Connect to your [Microsoft SQL Server account](https://ibm.biz/acmssqlserver).
4. To start the flow, in the banner, open the options menu [⋮] and click **Start flow**.

Want to see the flow working? Insert a new record into Microsoft SQL Server table, then go back to Salesforce endpoint to see the new contact.

11 changes: 10 additions & 1 deletion resources/template-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -1717,6 +1717,15 @@
"targetApps": ["sapsuccessfactors", "gmail"],
"tags": ["api", "sapsuccessfactors", "gmail"],
"offerings": ["app connect professional"]
}
},
{
"name": "Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server",
"description": "Use this template to Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server.",
"summary": "Microsoft SQL Server to Salesforce",
"sourceApp": "mssql",
"targetApps": ["salesforce"],
"tags": ["mssql", "salesforce"],
"offerings": ["app connect professional"]
}
]
}