From 6218dc9ee516ef7363818fa0acb5d5355af2b047 Mon Sep 17 00:00:00 2001 From: Sharath Kumar M Date: Mon, 12 Jun 2023 12:03:28 +0530 Subject: [PATCH 1/2] MsSQL to Salesforce Template --- ...ync Contacts from MsSQL to Salesforce.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 resources/Sync Contacts from MsSQL to Salesforce.yaml diff --git a/resources/Sync Contacts from MsSQL to Salesforce.yaml b/resources/Sync Contacts from MsSQL to Salesforce.yaml new file mode 100644 index 000000000..9eb40cb8f --- /dev/null +++ b/resources/Sync Contacts from MsSQL to Salesforce.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: {} From 4af46f258d7ebe757dc6d6029525515630e6bf64 Mon Sep 17 00:00:00 2001 From: Sharath Kumar M Date: Mon, 12 Jun 2023 20:01:45 +0530 Subject: [PATCH 2/2] Renamed the template name --- ...en a new contact record is added to Microsoft SQL Server.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename resources/{Sync Contacts from MsSQL to Salesforce.yaml => Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server.yaml} (100%) diff --git a/resources/Sync Contacts from MsSQL to Salesforce.yaml b/resources/Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server.yaml similarity index 100% rename from resources/Sync Contacts from MsSQL to Salesforce.yaml rename to resources/Store the contact details in Salesforce when a new contact record is added to Microsoft SQL Server.yaml