diff --git a/resources/Create a contact in Salesforce when a new company record is created in Microsoft SQL Server.yaml b/resources/Create a contact in Salesforce when a new company record is created in Microsoft SQL Server.yaml new file mode 100644 index 000000000..bb04b1cad --- /dev/null +++ b/resources/Create a contact in Salesforce when a new company record is created in Microsoft SQL Server.yaml @@ -0,0 +1,48 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + type: event-trigger + triggers: + CREATED_POLLER: + input-context: + data: cct_Company + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + subscription: + createdField: startDate + updatedField: startDate + timeFormat: YYYY-MM-DDTHH:mm:ssZ + timeZone: UTC + pollingInterval: 1 + isCreatedQueryable: true + connector-type: mssql + action-interfaces: + action-interface-2: + 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-2' + map: + mappings: + - LastName: + template: '{{$Trigger.companyname}}' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + name: Create a contact in Salesforce when a new company record is created in Microsoft SQL Server +models: {} diff --git a/resources/Create a file in Box for new documents created in Salesforce.yaml b/resources/Create a file in Box for new documents created in Salesforce.yaml new file mode 100644 index 000000000..51fdd9670 --- /dev/null +++ b/resources/Create a file in Box for new documents created in Salesforce.yaml @@ -0,0 +1,117 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + connector-type: salesforce + type: event-trigger + triggers: + CREATED_POLLER: + input-context: + data: Document + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + subscription: + createdField: CreatedDate + updatedField: LastModifiedDate + timeFormat: YYYY-MM-DDTHH:mm:ssZ + timeZone: UTC + pollingInterval: 1 + isCreatedQueryable: true + action-interfaces: + action-interface-2: + type: api-action + business-object: File + connector-type: box + actions: + CREATE: {} + action-interface-1: + type: api-action + business-object: File + connector-type: box + actions: + RETRIEVEALL: {} + assemblies: + assembly-1: + assembly: + execute: + - retrieve-action: + name: Box Retrieve file metadata + target: + $ref: '#/integration/action-interfaces/action-interface-1' + filter: + where: + id: '{{$Trigger.Id}}' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 1 + allow-truncation: true + pagination-type: SKIP_LIMIT + allow-empty-output: true + - if: + name: If + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: BoxRetrievefilemetadata + $ref: '#/node-output/Box Retrieve file metadata/response/payload' + - variable: BoxRetrievefilemetadataMetadata + $ref: '#/node-output/Box Retrieve file metadata/response' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$BoxRetrievefilemetadataMetadata."status-code"}}': + neq: '200' + execute: + - create-action: + name: Box Create file + target: + $ref: '#/integration/action-interfaces/action-interface-2' + map: + mappings: + - fileType: + template: Text + - name: + template: '{{$Trigger.Name}}' + - parent_id: + template: '186657742772' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: BoxRetrievefilemetadata + $ref: >- + #/node-output/Box Retrieve file + metadata/response/payload + - variable: BoxRetrievefilemetadataMetadata + $ref: >- + #/node-output/Box Retrieve file + metadata/response + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: [] + completion-action: + terminate: + info: + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: BoxRetrievefilemetadata + $ref: >- + #/node-output/Box Retrieve file + metadata/response/payload + - variable: BoxRetrievefilemetadataMetadata + $ref: '#/node-output/Box Retrieve file metadata/response' + - variable: flowDetails + $ref: '#/flowDetails' + message: File name {{$Trigger.Id}} is already exist in Box. + status-code: 200 + output-schema: {} + name: Create a file in Box for new documents created in Salesforce +models: {} diff --git a/resources/Create a lead in Marketo for each new attendee retrieved from Eventbrite.yaml b/resources/Create a lead in Marketo for each new attendee retrieved from Eventbrite.yaml new file mode 100644 index 000000000..f78ab4747 --- /dev/null +++ b/resources/Create a lead in Marketo for each new attendee retrieved from Eventbrite.yaml @@ -0,0 +1,245 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + type: event-trigger + triggers: + SCHEDULE: + input-context: + data: scheduler + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + subscription: + scheduleConfiguration: + interval: + unit: hour + value: 1 + runOnceOncheck: true + days: + - MON + - TUE + - WED + - THU + - FRI + - SAT + - SUN + timeZone: UTC + connector-type: streaming-connector-scheduler + action-interfaces: + action-interface-1: + type: api-action + business-object: leads + connector-type: marketo + actions: + CREATE: {} + action-interface-4: + type: api-action + business-object: Attendee + connector-type: eventbrite + actions: + RETRIEVEALL: {} + action-interface-5: + type: api-action + business-object: leads + connector-type: marketo + actions: + RETRIEVEALL: {} + assemblies: + assembly-1: + assembly: + execute: + - retrieve-action: + name: Eventbrite Retrieve attendees + target: + $ref: '#/integration/action-interfaces/action-interface-4' + filter: + where: + event_id: '777525889867' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10 + allow-truncation: true + pagination-type: SKIP_LIMIT + allow-empty-output: false + - for-each: + name: For each + assembly: + $ref: '#/integration/assemblies/assembly-2' + source: + expression: '$EventbriteRetrieveattendees ' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: EventbriteRetrieveattendees + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response/payload + - variable: EventbriteRetrieveattendeesMetadata + $ref: '#/node-output/Eventbrite Retrieve attendees/response' + - variable: GmailSendemail2 + $ref: '#/node-output/Gmail Send email 2/response/payload' + - variable: flowDetails + $ref: '#/flowDetails' + mode: sequential + continue-on-error: true + map: + $map: http://ibm.com/appconnect/map/v1 + customSchemas: + properties.`output`: + type: object + properties: + attendee: + type: string + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: MarketoRetrieveleads + $ref: >- + #/block/For each/node-output/Marketo Retrieve + leads/response/payload + - variable: MarketoRetrieveleadsMetadata + $ref: >- + #/block/For each/node-output/Marketo Retrieve + leads/response + - variable: EventbriteRetrieveattendees + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response/payload + - variable: EventbriteRetrieveattendeesMetadata + $ref: '#/node-output/Eventbrite Retrieve attendees/response' + - variable: GmailSendemail2 + $ref: '#/node-output/Gmail Send email 2/response/payload' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - output: + mappings: + - attendee: + template: '{{$Foreachitem}}' + display-name: Eventbrite Attendee + assembly-2: + assembly: + execute: + - retrieve-action: + name: Marketo Retrieve leads + target: + $ref: '#/integration/action-interfaces/action-interface-5' + filter: + where: + email: abhu@abc.com + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: EventbriteRetrieveattendees + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response/payload + - variable: EventbriteRetrieveattendeesMetadata + $ref: '#/node-output/Eventbrite Retrieve attendees/response' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10000 + allow-truncation: true + pagination-type: TOKEN + allow-empty-output: true + - if: + name: If + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: MarketoRetrieveleads + $ref: >- + #/block/For each/node-output/Marketo Retrieve + leads/response/payload + - variable: MarketoRetrieveleadsMetadata + $ref: '#/block/For each/node-output/Marketo Retrieve leads/response' + - variable: EventbriteRetrieveattendees + $ref: '#/node-output/Eventbrite Retrieve attendees/response/payload' + - variable: EventbriteRetrieveattendeesMetadata + $ref: '#/node-output/Eventbrite Retrieve attendees/response' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + and: + - '{{$MarketoRetrieveleadsMetadata."status-code"}}': '204' + - '{{$Foreachitem.created}}': + gt: '{{$Trigger.currentEventTime}}' + hashKey: object:892 + execute: + - create-action: + name: Marketo Create lead + target: + $ref: '#/integration/action-interfaces/action-interface-1' + map: + mappings: + - address: + template: '{{$Foreachitem.profile.addresses.home}}' + - city: + template: '{{$Foreachitem.profile.addresses.home.city}}' + - company: + template: '{{$Foreachitem.profile.company}}' + - country: + template: >- + {{$Foreachitem.profile.addresses.home.country}} + - dateOfBirth: + template: '{{$Foreachitem.profile.birth_date}}' + - email: + template: '{{$Foreachitem.profile.email}}' + - firstName: + template: '{{$Foreachitem.profile.first_name}}' + - lastName: + template: '{{$Foreachitem.profile.last_name}}' + - mobilePhone: + expression: '$Foreachitem.profile.cell_phone ' + - postalCode: + template: >- + {{$Foreachitem.profile.addresses.home.postal_code}} + - title: + template: '{{$Foreachitem.profile.job_title}}' + - website: + template: '{{$Foreachitem.profile.website}}' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: MarketoRetrieveleads + $ref: >- + #/block/For each/node-output/Marketo Retrieve + leads/response/payload + - variable: MarketoRetrieveleadsMetadata + $ref: >- + #/block/For each/node-output/Marketo Retrieve + leads/response + - variable: EventbriteRetrieveattendees + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response/payload + - variable: EventbriteRetrieveattendeesMetadata + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response + - variable: GmailSendemail2 + $ref: >- + #/node-output/Gmail Send email + 2/response/payload + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: [] + output-schema: {} + name: Create a lead in Marketo for each new attendee retrieved from Eventbrite +models: {} diff --git a/resources/Create a lead in Salesforce for each Eventbrite attendee.yaml b/resources/Create a lead in Salesforce for each Eventbrite attendee.yaml new file mode 100644 index 000000000..294d5c969 --- /dev/null +++ b/resources/Create a lead in Salesforce for each Eventbrite attendee.yaml @@ -0,0 +1,157 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + connector-type: streaming-connector-scheduler + type: event-trigger + triggers: + SCHEDULE: + input-context: + data: scheduler + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + subscription: + scheduleConfiguration: + interval: + unit: hour + value: 1 + runOnceOncheck: true + days: + - MON + - TUE + - WED + - THU + - FRI + - SAT + - SUN + timeZone: UTC + action-interfaces: + action-interface-1: + type: api-action + business-object: Attendee + connector-type: eventbrite + actions: + RETRIEVEALL: {} + action-interface-2: + type: api-action + business-object: Lead + connector-type: salesforce + actions: + CREATE: {} + assemblies: + assembly-1: + assembly: + execute: + - retrieve-action: + name: Eventbrite Retrieve attendees + target: + $ref: '#/integration/action-interfaces/action-interface-1' + filter: + where: + event_id: '760246296137' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 5 + allow-truncation: true + pagination-type: SKIP_LIMIT + allow-empty-output: false + - for-each: + name: For each + assembly: + $ref: '#/integration/assemblies/assembly-2' + source: + expression: '$EventbriteRetrieveattendees ' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: EventbriteRetrieveattendees + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response/payload + - variable: EventbriteRetrieveattendeesMetadata + $ref: '#/node-output/Eventbrite Retrieve attendees/response' + - variable: flowDetails + $ref: '#/flowDetails' + mode: sequential + continue-on-error: true + map: + $map: http://ibm.com/appconnect/map/v1 + mappings: [] + display-name: Eventbrite Attendee + assembly-2: + assembly: + execute: + - if: + name: If + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: EventbriteRetrieveattendees + $ref: '#/node-output/Eventbrite Retrieve attendees/response/payload' + - variable: EventbriteRetrieveattendeesMetadata + $ref: '#/node-output/Eventbrite Retrieve attendees/response' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$EventbriteRetrieveattendees.id}}': + neq: '' + execute: + - create-action: + name: Salesforce Create lead + target: + $ref: '#/integration/action-interfaces/action-interface-2' + map: + mappings: + - City: + template: '{{$Foreachitem.profile.addresses.ship.city}}' + - Company: + template: '{{$Foreachitem.profile.company}}' + - Country: + template: >- + {{$Foreachitem.profile.addresses.work.country}} + - Email: + template: '{{$Foreachitem.profile.email}}' + - FirstName: + template: '{{$Foreachitem.profile.first_name}}' + - LastName: + template: '{{$Foreachitem.profile.last_name}}' + - MobilePhone: + template: '{{$Foreachitem.profile.cell_phone}}' + - Phone: + template: '{{$Foreachitem.profile.cell_phone}}' + - Street: + template: >- + {{$Foreachitem.profile.addresses.home.address_1}} + - Title: + template: '{{$Foreachitem.profile.job_title}}' + - Website: + template: '{{$Foreachitem.profile.website}}' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: EventbriteRetrieveattendees + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response/payload + - variable: EventbriteRetrieveattendeesMetadata + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: [] + output-schema: {} + name: Create a lead in Salesforce for each Eventbrite attendee +models: {} diff --git a/resources/Create a row in Google Sheets worksheet when a new lead is created in Marketo.yaml b/resources/Create a row in Google Sheets worksheet when a new lead is created in Marketo.yaml new file mode 100644 index 000000000..e4c7acb83 --- /dev/null +++ b/resources/Create a row in Google Sheets worksheet when a new lead is created in Marketo.yaml @@ -0,0 +1,60 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + type: event-trigger + triggers: + CREATED: + input-context: + data: leads + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + webhookURLSuffix: FGlgq8GzUvN4IOsWzSoO2GVTe8l6wAQOpu_x0d2tGUOT_Be9lGJJ0vUrbAy1Vfe8 + connector-type: marketo + action-interfaces: + action-interface-1: + type: api-action + business-object: worksheetRow + connector-type: googlesheet + actions: + CREATE: {} + assemblies: + assembly-1: + assembly: + execute: + - create-action: + name: Google Sheets Create row + target: + $ref: '#/integration/action-interfaces/action-interface-1' + map: + mappings: + - fields: + mappings: + - '1': + template: '{{$Trigger.firstName}}' + - '2': + template: '{{$Trigger.middleName}}' + - '3': + template: '{{$Trigger.lastName}}' + - '4': + template: '{{$Trigger.company}}' + - '5': + template: '{{$Trigger.mktoName}}' + - '6': + template: '{{$Trigger.title}}' + - '7': + template: '{{$Trigger.mobilePhone}}' + - spreadsheetID: + template: 1VJQmf4WLM6ZVmxk6Sv94DOyuWUDBFO4uFhuWMD_TLJQ + - worksheetID: + template: Sheet1 + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + name: Create a row in Google Sheets worksheet when a new lead is created in Marketo +models: {} diff --git a/resources/Create an SAP customer set in SAP via OData for each new opportunity retrieved from Salesforce.yaml b/resources/Create an SAP customer set in SAP via OData for each new opportunity retrieved from Salesforce.yaml new file mode 100644 index 000000000..5e305a3cc --- /dev/null +++ b/resources/Create an SAP customer set in SAP via OData for each new opportunity retrieved from Salesforce.yaml @@ -0,0 +1,229 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + connector-type: salesforce + type: event-trigger + triggers: + CREATED: + input-context: + data: Opportunity + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: {} + action-interfaces: + action-interface-2: + type: api-action + business-object: mail + connector-type: gmail + actions: + CREATE: {} + action-interface-3: + type: api-action + business-object: Account + connector-type: salesforce + actions: + RETRIEVEALL: {} + action-interface-4: + type: api-action + business-object: CustomerSet + connector-type: sapodata + actions: + CREATE: {} + action-interface-1: + type: api-action + business-object: mail + connector-type: gmail + actions: + CREATE: {} + assemblies: + assembly-1: + assembly: + execute: + - if: + name: If + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + and: + - '{{$Trigger.AccountId}}': + neq: '' + - '{{$Trigger.Name}}': + neq: '' + hashKey: object:924 + execute: + - retrieve-action: + name: Salesforce Retrieve accounts + target: + $ref: '#/integration/action-interfaces/action-interface-3' + filter: + where: + Id: 0010800003ILIOhAAP + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10 + allow-truncation: true + pagination-type: TOKEN + allow-empty-output: false + - for-each: + name: For each + assembly: + $ref: '#/integration/assemblies/assembly-2' + source: + expression: '$SalesforceRetrieveaccounts ' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: SalesforceRetrieveaccounts + $ref: >- + #/block/If/node-output/Salesforce Retrieve + accounts/response/payload + - variable: SalesforceRetrieveaccountsMetadata + $ref: >- + #/block/If/node-output/Salesforce Retrieve + accounts/response + - variable: flowDetails + $ref: '#/flowDetails' + mode: sequential + continue-on-error: true + map: + $map: http://ibm.com/appconnect/map/v1 + customSchemas: + properties.`output`: + type: object + properties: + output: + type: string + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: SalesforceRetrieveaccounts + $ref: >- + #/block/If/node-output/Salesforce Retrieve + accounts/response/payload + - variable: SalesforceRetrieveaccountsMetadata + $ref: >- + #/block/If/node-output/Salesforce Retrieve + accounts/response + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - output: + mappings: + - output: + template: '{{$SalesforceRetrieveaccounts}}' + display-name: Salesforce Account + - create-action: + name: Gmail Send email + target: + $ref: '#/integration/action-interfaces/action-interface-1' + map: + mappings: + - Body: + template: >- + customerset + created==========={{$Foreach.output.output}} + - Subject: + template: customerset created + - To: + template: abhay_kumar@abc.com + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: SalesforceRetrieveaccounts + $ref: >- + #/block/If/node-output/Salesforce Retrieve + accounts/response/payload + - variable: SalesforceRetrieveaccountsMetadata + $ref: >- + #/block/If/node-output/Salesforce Retrieve + accounts/response + - variable: Foreach + $ref: '#/block/If/node-output/For each/response/payload' + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: + - create-action: + name: Gmail Send email 2 + target: + $ref: '#/integration/action-interfaces/action-interface-2' + map: + mappings: + - Body: + template: customerset not created + - Subject: + template: customerset not created + - To: + template: abhay_kumar@abc.com + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + output-schema: {} + assembly-2: + assembly: + execute: + - create-action: + name: SAP (via OData) Create CustomerSet + target: + $ref: '#/integration/action-interfaces/action-interface-4' + map: + mappings: + - City: + template: Burlingame + - Country: + template: US + - Currency: + template: USD + - DistrChan: + template: '01' + - Division: + template: '01' + - FirstName: + template: '{{$Foreachitem.Name}}' + - Langu: + template: EN + - Name: + template: '{{$Foreachitem.Name}}' + - PostlCode: + template: '94010' + - RefCustmr: + template: '3' + - Region: + template: CA + - Salesorg: + template: '0001' + - Street: + template: Cornwallis Rd + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: SalesforceRetrieveaccounts + $ref: >- + #/block/If/node-output/Salesforce Retrieve + accounts/response/payload + - variable: SalesforceRetrieveaccountsMetadata + $ref: >- + #/block/If/node-output/Salesforce Retrieve + accounts/response + - variable: flowDetails + $ref: '#/flowDetails' + name: Create an SAP customer set in SAP via OData for each new opportunity retrieved from Salesforce +models: {} diff --git a/resources/Create an account in Salesforce for each new Eventbrite attendee.yaml b/resources/Create an account in Salesforce for each new Eventbrite attendee.yaml new file mode 100644 index 000000000..d98435676 --- /dev/null +++ b/resources/Create an account in Salesforce for each new Eventbrite attendee.yaml @@ -0,0 +1,172 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + type: event-trigger + triggers: + SCHEDULE: + input-context: + data: scheduler + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + subscription: + scheduleConfiguration: + interval: + unit: minute + value: 1 + runOnceOncheck: true + days: + - MON + - TUE + - WED + - THU + - FRI + - SAT + - SUN + timeZone: UTC + connector-type: streaming-connector-scheduler + action-interfaces: + action-interface-1: + type: api-action + business-object: Attendee + connector-type: eventbrite + actions: + RETRIEVEALL: {} + action-interface-3: + type: api-action + business-object: Account + connector-type: salesforce + actions: + CREATE: {} + assemblies: + assembly-1: + assembly: + execute: + - retrieve-action: + name: Eventbrite Retrieve attendees + target: + $ref: '#/integration/action-interfaces/action-interface-1' + filter: + where: + event_id: '760246296137' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10 + allow-truncation: true + pagination-type: SKIP_LIMIT + allow-empty-output: false + - for-each: + name: For each + assembly: + $ref: '#/integration/assemblies/assembly-2' + source: + expression: '$EventbriteRetrieveattendees ' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: EventbriteRetrieveattendees + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response/payload + - variable: EventbriteRetrieveattendeesMetadata + $ref: '#/node-output/Eventbrite Retrieve attendees/response' + - variable: flowDetails + $ref: '#/flowDetails' + mode: sequential + continue-on-error: true + map: + $map: http://ibm.com/appconnect/map/v1 + customSchemas: + properties.`output`: + type: object + properties: + attendee: + type: string + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: EventbriteRetrieveattendees + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response/payload + - variable: EventbriteRetrieveattendeesMetadata + $ref: '#/node-output/Eventbrite Retrieve attendees/response' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - output: + mappings: + - attendee: + template: '{{$Foreachitem}}' + display-name: Eventbrite Attendee + assembly-2: + assembly: + execute: + - if: + name: If + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: EventbriteRetrieveattendees + $ref: '#/node-output/Eventbrite Retrieve attendees/response/payload' + - variable: EventbriteRetrieveattendeesMetadata + $ref: '#/node-output/Eventbrite Retrieve attendees/response' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$Foreachitem.created}}': + gt: '{{$Trigger.currentEventTime}}' + execute: + - create-action: + name: Salesforce Create account + target: + $ref: '#/integration/action-interfaces/action-interface-3' + map: + mappings: + - BillingCity: + template: '{{$Foreachitem.profile.addresses.ship.city}}' + - Description: + template: '{{$Foreachitem.profile.job_title}}' + - Name: + template: '{{$Foreachitem.profile.first_name}}' + - Phone: + template: '{{$Foreachitem.ticket_class_id}}' + - ShippingPostalCode: + template: '{{$Foreachitem.order_id}}' + - Site: + template: '{{$Foreachitem.resource_uri}}' + - Type: + template: Prospect + - Website: + template: '{{$Foreachitem.resource_uri}}' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: EventbriteRetrieveattendees + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response/payload + - variable: EventbriteRetrieveattendeesMetadata + $ref: >- + #/node-output/Eventbrite Retrieve + attendees/response + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: [] + output-schema: {} + name: Create an account in Salesforce for each new Eventbrite attendee +models: {} diff --git a/resources/Create an incident in ServiceNow for each new WhatsApp message retrieved from Twilio.yaml b/resources/Create an incident in ServiceNow for each new WhatsApp message retrieved from Twilio.yaml new file mode 100644 index 000000000..b024b3932 --- /dev/null +++ b/resources/Create an incident in ServiceNow for each new WhatsApp message retrieved from Twilio.yaml @@ -0,0 +1,153 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + connector-type: streaming-connector-scheduler + type: event-trigger + triggers: + SCHEDULE: + input-context: + data: scheduler + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + subscription: + scheduleConfiguration: + interval: + unit: hour + value: 1 + runOnceOncheck: true + days: + - MON + - TUE + - WED + - THU + - FRI + - SAT + - SUN + timeZone: UTC + action-interfaces: + action-interface-1: + type: api-action + business-object: getMessagesjson_model + connector-type: twilio + actions: + RETRIEVEALL: {} + action-interface-2: + type: api-action + business-object: incident + connector-type: servicenow + actions: + CREATE: {} + assemblies: + assembly-1: + assembly: + execute: + - retrieve-action: + name: Twilio Retrieve messages + target: + $ref: '#/integration/action-interfaces/action-interface-1' + filter: + limit: 50 + allow-truncation: true + pagination-type: TOKEN + allow-empty-output: false + - for-each: + name: For each + assembly: + $ref: '#/integration/assemblies/assembly-2' + source: + expression: '$TwilioRetrievemessages ' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: TwilioRetrievemessages + $ref: '#/node-output/Twilio Retrieve messages/response/payload' + - variable: TwilioRetrievemessagesMetadata + $ref: '#/node-output/Twilio Retrieve messages/response' + - variable: flowDetails + $ref: '#/flowDetails' + mode: sequential + continue-on-error: true + map: + $map: http://ibm.com/appconnect/map/v1 + customSchemas: + properties.`output`: + type: object + properties: + body: + type: string + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: TwilioRetrievemessages + $ref: '#/node-output/Twilio Retrieve messages/response/payload' + - variable: TwilioRetrievemessagesMetadata + $ref: '#/node-output/Twilio Retrieve messages/response' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - output: + mappings: + - body: + template: '{{$Foreachitem}}' + display-name: Twilio Messages + assembly-2: + assembly: + execute: + - if: + name: If + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: TwilioRetrievemessages + $ref: '#/node-output/Twilio Retrieve messages/response/payload' + - variable: TwilioRetrievemessagesMetadata + $ref: '#/node-output/Twilio Retrieve messages/response' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + and: + - '{{$contains($Foreachitem._to_ , "whatsapp")}}': + '=': 'true' + - '{{$Foreachitem.date_created}}': + gt: '{{$Trigger.currentEventTime}}' + hashKey: object:304 + execute: + - create-action: + name: ServiceNow Create incident + target: + $ref: '#/integration/action-interfaces/action-interface-2' + map: + mappings: + - number: + template: '{{$Foreachitem.sid}}' + - opened_at: + template: '{{$Foreachitem.date_created}}' + - short_description: + template: '{{$Foreachitem.body}}' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: TwilioRetrievemessages + $ref: >- + #/node-output/Twilio Retrieve + messages/response/payload + - variable: TwilioRetrievemessagesMetadata + $ref: '#/node-output/Twilio Retrieve messages/response' + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: [] + output-schema: {} + name: Create an incident in ServiceNow for each new WhatsApp message retrieved from Twilio +models: {} diff --git a/resources/Invite a new Salesforce contact to access a file in Google Drive.yaml b/resources/Invite a new Salesforce contact to access a file in Google Drive.yaml new file mode 100644 index 000000000..c33ce8009 --- /dev/null +++ b/resources/Invite a new Salesforce contact to access a file in Google Drive.yaml @@ -0,0 +1,105 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + connector-type: salesforce + type: event-trigger + triggers: + CREATED_POLLER: + input-context: + data: Contact + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + subscription: + timeZone: UTC + pollingInterval: 1 + action-interfaces: + action-interface-2: + type: api-action + business-object: Permission + connector-type: googledrive + actions: + CREATE: {} + action-interface-1: + type: api-action + business-object: Files + connector-type: googledrive + actions: + RETRIEVEALL: {} + assemblies: + assembly-1: + assembly: + execute: + - if: + name: If + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$Trigger.Id}}': + neq: '' + execute: + - retrieve-action: + name: Google Drive Retrieve files metadata + target: + $ref: '#/integration/action-interfaces/action-interface-1' + filter: + where: + id: 1sORYnoQH2quZDYc2gSmvJuVqPHSbLf7y + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 1 + allow-truncation: true + allow-empty-output: false + - create-action: + name: Google Drive Create permission + target: + $ref: '#/integration/action-interfaces/action-interface-2' + map: + mappings: + - allowFileDiscovery: + expression: 'true' + - emailAddress: + template: '{{$Trigger.Email}}' + - emailMessage: + template: >- + Hi {{$Trigger.Name}}, you are invited as a + file organizer for the file + {{$GoogleDriveRetrievefilesmetadata.name}} + - fileId: + template: 1sORYnoQH2quZDYc2gSmvJuVqPHSbLf7y + - role: + template: fileOrganizer + - sendNotificationEmail: + expression: 'true' + - transferOwnership: + expression: 'false' + - type: + template: user + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: GoogleDriveRetrievefilesmetadata + $ref: >- + #/block/If/node-output/Google Drive Retrieve + files metadata/response/payload + - variable: GoogleDriveRetrievefilesmetadataMetadata + $ref: >- + #/block/If/node-output/Google Drive Retrieve + files metadata/response + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: [] + output-schema: {} + name: Invite a new Salesforce contact to access a file in Google Drive +models: {} diff --git a/resources/Invoke a function from AWS Lambda whenever a new row is appended in Google Sheets.yaml b/resources/Invoke a function from AWS Lambda whenever a new row is appended in Google Sheets.yaml new file mode 100644 index 000000000..be63e4afd --- /dev/null +++ b/resources/Invoke a function from AWS Lambda whenever a new row is appended in Google Sheets.yaml @@ -0,0 +1,84 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + type: event-trigger + triggers: + CREATED: + input-context: + data: worksheetRow + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + spreadsheetID: 1P9VH21j78tzNa98WL6hh8KfylOkybs3AFcG3NuJzPEA + worksheetID: Sheet1 + parentFilter: + spreadsheetID: 1P9VH21j78tzNa98WL6hh8KfylOkybs3AFcG3NuJzPEA + worksheetID: Sheet1 + connector-type: googlesheet + action-interfaces: + action-interface-3: + type: api-action + business-object: worksheetRow + connector-type: googlesheet + actions: + CREATE: {} + action-interface-2: + type: api-action + business-object: mail + connector-type: gmail + actions: + CREATE: {} + assemblies: + assembly-1: + assembly: + execute: + - create-action: + name: Gmail Send email + target: + $ref: '#/integration/action-interfaces/action-interface-2' + map: + mappings: + - Subject: + template: worksheet + - To: + template: ashudeep_devari@abc.com + - richTextBody: + mappings: + - content: + template: '{{$Trigger}}' + - contentType: + template: text/plain + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + - create-action: + name: Google Sheets Create row + target: + $ref: '#/integration/action-interfaces/action-interface-3' + map: + mappings: + - fields: + mappings: + - '3': + template: '{{$AWSLambdaInvokefunction.Payload}}' + - spreadsheetID: + template: 1P9VH21j78tzNa98WL6hh8KfylOkybs3AFcG3NuJzPEA + - worksheetID: + template: Sheet1 + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: GmailSendemail + $ref: '#/node-output/Gmail Send email/response/payload' + - variable: AWSLambdaInvokefunction + $ref: '#/node-output/AWS Lambda Invoke function/response/payload' + - variable: flowDetails + $ref: '#/flowDetails' + name: Invoke a function from AWS Lambda whenever a new row is appended in Google Sheets +models: {} diff --git a/resources/Send a message by phone number via Twilio when new all-day-event information is updated in a Google Sheets worksheet.yaml b/resources/Send a message by phone number via Twilio when new all-day-event information is updated in a Google Sheets worksheet.yaml new file mode 100644 index 000000000..dfd3db3d5 --- /dev/null +++ b/resources/Send a message by phone number via Twilio when new all-day-event information is updated in a Google Sheets worksheet.yaml @@ -0,0 +1,108 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + connector-type: googlecalendar + type: event-trigger + triggers: + CREATED_POLLER: + input-context: + data: events + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + id: 6qk23qq40njrnpmibdeb33rhh0@group.calendar.google.com + parentFilter: + id: 6qk23qq40njrnpmibdeb33rhh0@group.calendar.google.com + subscription: + updatedField: fromDate + timeZone: Asia/Kolkata + pollingInterval: 1 + action-interfaces: + action-interface-1: + type: api-action + business-object: postMessagesjsonByFromphone_model + connector-type: twilio + actions: + postMessagesjsonByFromphone: {} + action-interface-3: + type: api-action + business-object: worksheetRow + connector-type: googlesheet + actions: + CREATE: {} + assemblies: + assembly-1: + assembly: + execute: + - if: + name: If + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$Trigger.allDayEvent}}': 'true' + execute: + - create-action: + name: Google Sheets Create row + target: + $ref: '#/integration/action-interfaces/action-interface-3' + map: + mappings: + - fields: + mappings: + - '1': + template: '{{$Trigger.startTime}}' + - '2': + template: '{{$Trigger.endTime}}' + - '3': + template: '{{$Trigger.location}}' + - '4': + template: '{{$Trigger.description}}' + - spreadsheetID: + template: 1gbi9TpDenhpS7CsGMssIKBpXYCUFWhVq1UJvdGHWVc8 + - worksheetID: + template: newworksheet + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + - custom-action: + name: Twilio Send message by phone number + target: + $ref: '#/integration/action-interfaces/action-interface-1' + action: postMessagesjsonByFromphone + map: + mappings: + - Body: + template: >- + Hi All your new event data is updated in your + worksheet at + {{$GoogleSheetsCreaterow.rowNumber}}==={{$Trigger.startTime}}===descritpion=={{$Trigger.description}}==endtime==={{$Trigger.endTime}}==location==={{$Trigger.location}} + - From: + template: '+12765660288' + - MessageType: + template: Text + - To: + template: '918123558508' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: GoogleSheetsCreaterow + $ref: >- + #/block/If/node-output/Google Sheets Create + row/response/payload + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: [] + output-schema: {} + name: Send a message by phone number via Twilio when new all-day-event information is updated in a Google Sheets worksheet +models: {} diff --git a/resources/Update or create a customer set in SAP via OData when a new contact is created in Salesforce.yaml b/resources/Update or create a customer set in SAP via OData when a new contact is created in Salesforce.yaml new file mode 100644 index 000000000..e0f3f7eaa --- /dev/null +++ b/resources/Update or create a customer set in SAP via OData when a new contact is created in Salesforce.yaml @@ -0,0 +1,153 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + type: event-trigger + triggers: + CREATED: + input-context: + data: Contact + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: {} + connector-type: salesforce + action-interfaces: + action-interface-1: + type: api-action + business-object: CustomerSet + connector-type: sapodata + actions: + UPSERTWITHWHERE: {} + action-interface-3: + type: api-action + business-object: mail + connector-type: gmail + actions: + CREATE: {} + action-interface-4: + type: api-action + business-object: mail + connector-type: gmail + actions: + CREATE: {} + assemblies: + assembly-1: + assembly: + execute: + - if: + name: If + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: GmailSendemail3 + $ref: '#/node-output/Gmail Send email 3/response/payload' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$Trigger.Id}}': + neq: '' + execute: + - upsert-action: + name: SAP (via OData) Update or create CustomerSet + target: + $ref: '#/integration/action-interfaces/action-interface-1' + map: + mappings: + - City: + template: '{{$Trigger.OtherCity}}' + - Country: + template: '{{$Trigger.OtherCountry}}' + - Currency: + template: '{{$Trigger.MailingCountry}}' + - DistrChan: + template: '{{$Trigger.MailingCity}}' + - Division: + template: '{{$Trigger.MailingState}}' + - FirstName: + template: '{{$Trigger.FirstName}}' + - Langu: + template: '{{$Trigger.Languages__c}}' + - Name: + template: '{{$Trigger.LastName}}' + - PostlCode: + template: '{{$Trigger.OtherPostalCode}}' + - RefCustmr: + template: '{{$Trigger.MailingPostalCode}}' + - Region: + template: '{{$Trigger.OtherState}}' + - Salesorg: + template: '{{$Trigger.MailingStreet}}' + - Street: + template: '{{$Trigger.OtherStreet}}' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + filter: + where: + Kunnr: '12345' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10 + - create-action: + name: Gmail Send email + target: + $ref: '#/integration/action-interfaces/action-interface-3' + map: + mappings: + - Body: + template: '{{$SAPviaODataUpdateorcreateCustomerSet}}' + - Subject: + template: Customer is created + - To: + template: preprodtest94@gmail.com + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: SAPviaODataUpdateorcreateCustomerSet + $ref: >- + #/block/If/node-output/SAP (via OData) Update or + create CustomerSet/response/payload + - variable: SAPviaODataUpdateorcreateCustomerSetMetadata + $ref: >- + #/block/If/node-output/SAP (via OData) Update or + create CustomerSet/response + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: + - create-action: + name: Gmail Send email 2 + target: + $ref: '#/integration/action-interfaces/action-interface-4' + map: + mappings: + - Subject: + template: Customer is not created + - To: + template: preprodtest94@gmail.com + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: SAPviaODataRetrieveCustomerSet + $ref: >- + #/node-output/SAP (via OData) Retrieve + CustomerSet/response/payload + - variable: SAPviaODataRetrieveCustomerSetMetadata + $ref: >- + #/node-output/SAP (via OData) Retrieve + CustomerSet/response + - variable: flowDetails + $ref: '#/flowDetails' + output-schema: {} + name: Update or create a customer set in SAP via OData when a new contact is created in Salesforce +models: {} diff --git a/resources/markdown/Create a contact in Salesforce when a new company record is created in Microsoft SQL Server_instructions.md b/resources/markdown/Create a contact in Salesforce when a new company record is created in Microsoft SQL Server_instructions.md new file mode 100644 index 000000000..8b8c922ea --- /dev/null +++ b/resources/markdown/Create a contact in Salesforce when a new company record is created in Microsoft SQL Server_instructions.md @@ -0,0 +1,10 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Create%20a%20contact%20in%20Salesforce%20when%20a%20new%20company%20record%20is%20created%20in%20Microsoft%20SQL%20Server_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Microsoft SQL Server](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-microsoft-sql-server) + - [Salesforce](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-salesforce) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to create a contact in Salesforce when a new company record is created in Microsoft SQL Server. In this example, the contact is created in Salesforce based on the company records and details. diff --git a/resources/markdown/Create a file in Box for new documents created in Salesforce_instructions.md b/resources/markdown/Create a file in Box for new documents created in Salesforce_instructions.md new file mode 100644 index 000000000..1006fa137 --- /dev/null +++ b/resources/markdown/Create a file in Box for new documents created in Salesforce_instructions.md @@ -0,0 +1,10 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Create%20a%20file%20in%20Box%20for%20new%20documents%20created%20in%20Salesforce_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Salesforce](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-salesforce) + - [Box](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-box) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to create a file in Box for all new documents created in Salesforce. diff --git a/resources/markdown/Create a lead in Marketo for each new attendee retrieved from Eventbrite_instructions.md b/resources/markdown/Create a lead in Marketo for each new attendee retrieved from Eventbrite_instructions.md new file mode 100644 index 000000000..d58179e42 --- /dev/null +++ b/resources/markdown/Create a lead in Marketo for each new attendee retrieved from Eventbrite_instructions.md @@ -0,0 +1,10 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Create%20a%20lead%20in%20Marketo%20for%20each%20new%20attendee%20retrieved%20from%20Eventbrite_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Eventbrite](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-eventbrite) + - [Marketo](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-marketo) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to create a lead in Marketo for each attendee retrieved from Eventbrite. In this example, if the attendee does not exist in Marketo, the attendee is created as a lead in Marketo based on the attendee’s information. diff --git a/resources/markdown/Create a lead in Salesforce for each Eventbrite attendee_instructions.md b/resources/markdown/Create a lead in Salesforce for each Eventbrite attendee_instructions.md new file mode 100644 index 000000000..53869f7f7 --- /dev/null +++ b/resources/markdown/Create a lead in Salesforce for each Eventbrite attendee_instructions.md @@ -0,0 +1,10 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Create%20a%20lead%20in%20Salesforce%20for%20each%20Eventbrite%20attendee_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Eventbrite](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-eventbrite) + - [Salesforce](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-salesforce) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to create a lead in Salesforce for each attendee retrieved from Eventbrite. In this example, if the Eventbrite attendee ID is not empty, the attendee is created as a lead in Salesforce based on the attendee’s information. diff --git a/resources/markdown/Create a row in Google Sheets worksheet when a new lead is created in Marketo_instructions.md b/resources/markdown/Create a row in Google Sheets worksheet when a new lead is created in Marketo_instructions.md new file mode 100644 index 000000000..9beccd802 --- /dev/null +++ b/resources/markdown/Create a row in Google Sheets worksheet when a new lead is created in Marketo_instructions.md @@ -0,0 +1,11 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Create%20a%20row%20in%20Google%20Sheets%20worksheet%20when%20a%20new%20lead%20is%20created%20in%20Marketo_instructions.md) (opens in a new window). + + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Marketo](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-marketo) + - [Google Sheets](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-google-sheets) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to create a row in Google Sheets worksheet when a new lead is created in Marketo. In this example, the lead information is appended to a new row in a Google Sheets worksheet. Marketo parses the lead data by executing a webhook URL, using it to publish events that trigger this flow. diff --git a/resources/markdown/Create an SAP customer set in SAP via OData for each new opportunity retrieved from Salesforce_instructions.md b/resources/markdown/Create an SAP customer set in SAP via OData for each new opportunity retrieved from Salesforce_instructions.md new file mode 100644 index 000000000..5d606d319 --- /dev/null +++ b/resources/markdown/Create an SAP customer set in SAP via OData for each new opportunity retrieved from Salesforce_instructions.md @@ -0,0 +1,11 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Create%20an%20SAP%20customer%20set%20in%20SAP%20via%20OData%20for%20each%20new%20opportunity%20retrieved%20from%20Salesforce_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Salesforce](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-salesforce) + - [SAP (via OData)](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-sap-via-odata) + - [Gmail](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-gmail) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to create an SAP customer set in SAP (via OData) for each new opportunity retrieved from Salesforce. diff --git a/resources/markdown/Create an account in Salesforce for each new Eventbrite attendee_instructions.md b/resources/markdown/Create an account in Salesforce for each new Eventbrite attendee_instructions.md new file mode 100644 index 000000000..cb08fbcd4 --- /dev/null +++ b/resources/markdown/Create an account in Salesforce for each new Eventbrite attendee_instructions.md @@ -0,0 +1,10 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Create%20an%20account%20in%20Salesforce%20for%20each%20new%20Eventbrite%20attendee_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Eventbrite](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-eventbrite) + - [Salesforce](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-salesforce) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to create an account in Salesforce for each new Eventbrite attendee. diff --git a/resources/markdown/Create an incident in ServiceNow for each new WhatsApp message retrieved from Twilio_instructions.md b/resources/markdown/Create an incident in ServiceNow for each new WhatsApp message retrieved from Twilio_instructions.md new file mode 100644 index 000000000..2096687f9 --- /dev/null +++ b/resources/markdown/Create an incident in ServiceNow for each new WhatsApp message retrieved from Twilio_instructions.md @@ -0,0 +1,10 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Create%20an%20incident%20in%20ServiceNow%20for%20each%20new%20WhatsApp%20message%20retrieved%20from%20Twilio_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Twilio](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-twilio) + - [ServiceNow](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-servicenow) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to create an incident in ServiceNow for each new WhatsApp message retrieved from Twilio. diff --git a/resources/markdown/Invite a new Salesforce contact to access a file in Google Drive_instructions.md b/resources/markdown/Invite a new Salesforce contact to access a file in Google Drive_instructions.md new file mode 100644 index 000000000..36422b39f --- /dev/null +++ b/resources/markdown/Invite a new Salesforce contact to access a file in Google Drive_instructions.md @@ -0,0 +1,10 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Invite%20a%20new%20Salesforce%20contact%20to%20access%20a%20file%20in%20Google%20Drive_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Salesforce](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-salesforce) + - [Google Drive](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-google-drive) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to invite new contacts in Salesforce to be collaborators in Google Drive. In this example, permission is created for a new Salesforce contact for a Google Drive file. An invitation email gets sent to the new Salesforce contact to notify them that access has been granted for the file in Google Drive. diff --git a/resources/markdown/Invoke a function from AWS Lambda whenever a new row is appended in Google Sheets_instructions.md b/resources/markdown/Invoke a function from AWS Lambda whenever a new row is appended in Google Sheets_instructions.md new file mode 100644 index 000000000..632dcd8d9 --- /dev/null +++ b/resources/markdown/Invoke a function from AWS Lambda whenever a new row is appended in Google Sheets_instructions.md @@ -0,0 +1,11 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Invoke%20a%20function%20from%20AWS%20Lambda%20whenever%20a%20new%20row%20is%20appended%20in%20Google%20Sheets_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Google Sheets](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-google-sheets) + - [AWS Lambda](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-aws-lambda) + - [Gmail](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-gmail) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to update an existing row in a Google Sheets worksheet based on an AWS Lambda function execution report. In this example, a function from AWS Lambda is invoked based on the newly appended information in a Google Sheets worksheet. The Google Sheets worksheet is updated based on the execution result from the Lambda function. diff --git a/resources/markdown/Send a message by phone number via Twilio when new all-day-event information is updated in a Google Sheets worksheet_instructions.md b/resources/markdown/Send a message by phone number via Twilio when new all-day-event information is updated in a Google Sheets worksheet_instructions.md new file mode 100644 index 000000000..a84d3f62d --- /dev/null +++ b/resources/markdown/Send a message by phone number via Twilio when new all-day-event information is updated in a Google Sheets worksheet_instructions.md @@ -0,0 +1,11 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Send%20a%20message%20by%20phone%20number%20via%20Twilio%20when%20new%20all-day-event%20information%20is%20updated%20in%20a%20Google%20Sheets%20worksheet_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Google Calendar](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-google-calendar) + - [Google Sheets](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-google-sheets) + - [Twilio](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-twilio) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to send a message by phone number via Twilio when new Google Calendar all-day-event information is updated in a Google Sheets worksheet. diff --git a/resources/markdown/Update or create a customer set in SAP via OData when a new contact is created in Salesforce_instructions.md b/resources/markdown/Update or create a customer set in SAP via OData when a new contact is created in Salesforce_instructions.md new file mode 100644 index 000000000..4464fc616 --- /dev/null +++ b/resources/markdown/Update or create a customer set in SAP via OData when a new contact is created in Salesforce_instructions.md @@ -0,0 +1,11 @@ +To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/tree/main/resources/markdown/Update%20or%20create%20a%20customer%20set%20in%20SAP%20via%20OData%20when%20a%20new%20contact%20is%20created%20in%20Salesforce_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Salesforce](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-salesforce) + - [SAP (via OData)](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-sap-via-odata) + - [Gmail](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-gmail) +3. To start the flow, in the banner, click **Start flow**. + + +Use this template to update or create a customer set in SAP (via OData) when a new contact is created in Salesforce. diff --git a/resources/template-metadata.json b/resources/template-metadata.json index 88b271fce..f40fba128 100644 --- a/resources/template-metadata.json +++ b/resources/template-metadata.json @@ -3238,6 +3238,114 @@ "targetApps": ["googlecontacts", "googlecontacts", "gmail"], "tags": ["salesforce", "googlecontacts", "gmail", "if"], "offerings": ["app connect professional"] - } + }, + { + "name": "Create a contact in Salesforce when a new company record is created in Microsoft SQL Server", + "description": "Use this template to create a contact in Salesforce when a new company record is created in Microsoft SQL Server.", + "summary": "Microsoft SQL Server to Salesforce", + "sourceApp": "mssql", + "targetApps": ["salesforce"], + "tags": ["mssql", "salesforce"], + "offerings": ["app connect professional"] + }, + { + "name": "Create a file in Box for new documents created in Salesforce", + "description": "Use this template to create a file in Box for all new documents created in Salesforce.", + "summary": "Salesforce to Box", + "sourceApp": "salesforce", + "targetApps": ["box", "box"], + "tags": ["salesforce", "box", "if"], + "offerings": ["app connect professional"] + }, + { + "name": "Create a lead in Marketo for each new attendee retrieved from Eventbrite", + "description": "Use this template to create a lead in Marketo for each attendee retrieved from Eventbrite.", + "summary": "Scheduler to 2 applications", + "sourceApp": "streaming-connector-scheduler", + "targetApps": ["eventbrite", "marketo", "marketo"], + "tags": ["scheduler", "eventbrite", "marketo", "foreach", "if"], + "offerings": ["app connect professional"] + }, + { + "name": "Create a lead in Salesforce for each Eventbrite attendee", + "description": "Use this template to create a lead in Salesforce for each attendee retrieved from Eventbrite.", + "summary": "Scheduler to 2 applications", + "sourceApp": "streaming-connector-scheduler", + "targetApps": ["eventbrite","salesforce"], + "tags": ["scheduler", "eventbrite", "salesforce", "foreach", "if"], + "offerings": ["app connect professional"] + }, + { + "name": "Create an account in Salesforce for each new Eventbrite attendee", + "description": "Use this template to create an account in Salesforce for each new Eventbrite attendee.", + "summary": "Scheduler to 2 applications", + "sourceApp": "streaming-connector-scheduler", + "targetApps": ["eventbrite", "salesforce"], + "tags": ["scheduler", "eventbrite", "salesforce", "foreach", "if"], + "offerings": ["app connect professional"] + }, + { + "name": "Create an incident in ServiceNow for each new WhatsApp message retrieved from Twilio", + "description": "Use this template to create an incident in ServiceNow for each new WhatsApp message retrieved from Twilio.", + "summary": "Scheduler to 2 applications", + "sourceApp": "streaming-connector-scheduler", + "targetApps": ["twilio", "servicenow"], + "tags": ["scheduler", "twilio", "servicenow", "foreach", "if"], + "offerings": ["app connect professional"] + }, + { + "name": "Create an SAP customer set in SAP via OData for each new opportunity retrieved from Salesforce", + "description": "Use this template to create an SAP customer set in SAP via OData for each new opportunity retrieved from Salesforce. ", + "summary": "Salesforce to 2 applications", + "sourceApp": "salesforce", + "targetApps": ["salesforce", "sapodata", "gmail"], + "tags": ["salesforce", "sapodata", "gmail", "foreach", "if"], + "offerings": ["app connect professional"] + }, + { + "name": "Invite a new Salesforce contact to access a file in Google Drive", + "description": "Use this template to invite new contacts in Salesforce to be collaborators in Google Drive.", + "summary": "Salesforce to Google Drive", + "sourceApp": "salesforce", + "targetApps": ["googledrive"], + "tags": ["salesforce", "googledrive", "if"], + "offerings": ["app connect professional"] + }, + { + "name": "Invoke a function from AWS Lambda whenever a new row is appended in Google Sheets", + "description": "Use this template to update an existing row in a Google Sheets worksheet based on an AWS Lambda function execution report.", + "summary": "Google Sheets to 2 applications", + "sourceApp": "googlesheet", + "targetApps": ["amazonlambda", "gmail", "googlesheet"], + "tags": ["googlesheet", "amazonlambda", "gmail"], + "offerings": ["app connect professional"] + }, + { + "name": "Send a message by phone number via Twilio when new all-day-event information is updated in a Google Sheets worksheet", + "description": "Use this template to send a message by phone number via Twilio when new Google Calendar all-day-event information is updated in a Google Sheets worksheet.", + "summary": "Google Calendar to 2 applications", + "sourceApp": "googlecalendar", + "targetApps": ["googlesheet", "twilio"], + "tags": ["googlecalendar", "googlesheet", "twilio", "if"], + "offerings": ["app connect professional"] + }, + { + "name": "Update or create a customer set in SAP via OData when a new contact is created in Salesforce", + "description": "Use this template to update or create a customer set in SAP via OData when a new contact is created in Salesforce.", + "summary": "Salesforce to 2 applications", + "sourceApp": "salesforce", + "targetApps": ["sapodata", "gmail"], + "tags": ["salesforce", "sapodata", "gmail", "if"], + "offerings": ["app connect professional"] + }, + { + "name": "Create a row in Google Sheets worksheet when a new lead is created in Marketo", + "description": "Use this template to create a row in Google Sheets worksheet when a new lead is created in Marketo.", + "summary": "Marketo to Google Sheets", + "sourceApp": "marketo ", + "targetApps": ["googlesheet"], + "tags": ["marketo", "googlesheet"], + "offerings": ["app connect professional"] + } ] -} +} \ No newline at end of file