diff --git a/resources/Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server.yaml b/resources/Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server.yaml new file mode 100644 index 000000000..9eb40cb8f --- /dev/null +++ b/resources/Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server.yaml @@ -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: {} diff --git a/resources/markdown/Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server_instructions.md b/resources/markdown/Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server_instructions.md new file mode 100644 index 000000000..fd3b93636 --- /dev/null +++ b/resources/markdown/Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server_instructions.md @@ -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. + diff --git a/resources/template-metadata.json b/resources/template-metadata.json index b14e14777..c176772c9 100644 --- a/resources/template-metadata.json +++ b/resources/template-metadata.json @@ -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"] + } ] }