Skip to content

Commit

Permalink
shahmini master epic3358 [5] (#370)
Browse files Browse the repository at this point in the history
* shahmini cp4i epic3358 [5]

Batch 5

Adding templates for existing connectors; total 10 UCs

* shahmini epic3358 [5]

added readme for 10 UCs

* Update and rename Create a comment in GitHub with a knowledge article from ServiceNow when an issue is created or updated in GitHub_instructions - Copy.md to Create a comment in GitHub with a knowledge article from ServiceNow when an issue is created or updated in GitHub_instructions.md

* batch5 epic3358

* batch5 epic3358

* batch5 epic3358

* batch5 epic3358

* batch5 epic3358

* batch5 epic3358

* batch5 epic3358

* batch5 epic3358

* Update Create a new employee in IBM Db2 for each worker retrieved from Oracle HCM and sync any existing employee to IBM Db2_instructions.md

* batch5 epic3358

* batch5 epic3358

* batch [5]

* batch [5]

* batch [5]

* batch5

* Batch 5

* batch 5

* Update template-metadata.json

Batch 5 epic3358

* batch 5

* Batch 5

* Update template-metadata.json

Batch 5 epic 3358

* batch 5

* batch 5

* batch 5

* Update template-metadata.json

batch 5 epic 3358

* Update template-metadata.json

batch 5 epic 3358

* batch 5

* batch 5

* batch 5
  • Loading branch information
shahminiaru authored Sep 26, 2023
1 parent c21f508 commit 9199ca5
Show file tree
Hide file tree
Showing 21 changed files with 2,216 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
$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: Campaign
assembly:
$ref: '#/integration/assemblies/assembly-1'
options: {}
connector-type: salesforce
action-interfaces:
action-interface-3:
type: api-action
business-object: CampaignMember
connector-type: salesforce
actions:
RETRIEVEALL: {}
action-interface-1:
type: api-action
business-object: events
connector-type: googlecalendar
actions:
CREATE: {}
assemblies:
assembly-1:
assembly:
execute:
- retrieve-action:
name: Salesforce Retrieve campaign members
target:
$ref: '#/integration/action-interfaces/action-interface-3'
filter:
where:
CampaignId: '{{$Trigger.Id}}'
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
limit: 10
allow-truncation: false
pagination-type: TOKEN
allow-empty-output: false
- for-each:
name: For each
assembly:
$ref: '#/integration/assemblies/assembly-2'
source:
expression: '$SalesforceRetrievecampaignmembers '
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: SalesforceRetrievecampaignmembers
$ref: >-
#/node-output/Salesforce Retrieve campaign
members/response/payload
- variable: SalesforceRetrievecampaignmembersMetadata
$ref: >-
#/node-output/Salesforce Retrieve campaign
members/response
- variable: flowDetails
$ref: '#/flowDetails'
mode: sequential
continue-on-error: true
map:
$map: http://ibm.com/appconnect/map/v1
mappings: []
display-name: Salesforce Campaign Member
assembly-2:
assembly:
execute:
- if:
name: If
input:
- variable: Foreachitem
$ref: '#/block/For each/current-item'
- variable: Trigger
$ref: '#/trigger/payload'
- variable: SalesforceRetrievecampaignmembers
$ref: >-
#/node-output/Salesforce Retrieve campaign
members/response/payload
- variable: SalesforceRetrievecampaignmembersMetadata
$ref: '#/node-output/Salesforce Retrieve campaign members/response'
- variable: flowDetails
$ref: '#/flowDetails'
branch:
- condition:
'{{$Trigger.Status}}': Completed
execute:
- create-action:
name: Google Calendar Create event
target:
$ref: '#/integration/action-interfaces/action-interface-1'
map:
mappings:
- attendees:
foreach:
input: '[0]'
iterator: attendeesItem
mappings:
- email:
template: '{{$Foreachitem.Email}}'
- endTime:
template: '2023-09-05 11:00:00'
- id:
template: >-
[email protected]
- startTime:
template: '2023-09-05 10:00:00'
- summary:
template: '{{$Trigger.Name}}'
- timeZone:
template: Asia/Kolkata
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Foreachitem
$ref: '#/block/For each/current-item'
- variable: Trigger
$ref: '#/trigger/payload'
- variable: SalesforceRetrievecampaignmembers
$ref: >-
#/node-output/Salesforce Retrieve campaign
members/response/payload
- variable: SalesforceRetrievecampaignmembersMetadata
$ref: >-
#/node-output/Salesforce Retrieve campaign
members/response
- variable: flowDetails
$ref: '#/flowDetails'
else:
execute: []
output-schema: {}
name: Create a Google Calendar when a campaign is created in Salesforce for members who have completed the registration
models: {}
Loading

0 comments on commit 9199ca5

Please sign in to comment.