Skip to content

Commit

Permalink
Merge branch 'master' into shahminiaru-patch-5
Browse files Browse the repository at this point in the history
  • Loading branch information
shahminiaru authored Sep 21, 2023
2 parents ec29083 + 012dc61 commit 2d6ad49
Show file tree
Hide file tree
Showing 77 changed files with 5,542 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: trigger-action
trigger-interfaces:
trigger-interface-1:
connector-type: asana
type: event-trigger
triggers:
CREATED:
input-context:
data: Tasks
assembly:
$ref: '#/integration/assemblies/assembly-1'
options:
workspace-id: '1204205574829453'
team-id: '1204205586130693'
project: '1204205585687152'
parentFilter:
workspace-id: '1204205574829453'
team-id: '1204205586130693'
project: '1204205585687152'
action-interfaces:
action-interface-1:
type: api-action
business-object: Card
connector-type: trello
actions:
CREATE: {}
assemblies:
assembly-1:
assembly:
execute:
- create-action:
name: Trello Add card to list
target:
$ref: '#/integration/action-interfaces/action-interface-1'
map:
mappings:
- desc:
template: '{{$Trigger.notes}}'
- idBoard:
template: 629d96c76766c513b0e82f66
- idList:
template: 629d96c76766c513b0e82f6d
- idOrganization:
template: 6087b4630e5b124b38c75386
- name:
template: '{{$Trigger.name}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
name: Add a card to a list in Trello whenever a new task is created in Asana
models: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
$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: minute
value: 1
runOnceOncheck: true
days:
- MON
- TUE
- WED
- THU
- FRI
- SAT
- SUN
timeZone: UTC
action-interfaces:
action-interface-1:
type: api-action
business-object: getOtherContactssearch_model
connector-type: googlecontacts
actions:
getOtherContactssearch: {}
action-interface-2:
type: api-action
business-object: Members
connector-type: mailchimp
actions:
CREATE: {}
assemblies:
assembly-1:
assembly:
execute:
- custom-action:
name: Google Contacts Retrieve other contacts by search string
target:
$ref: '#/integration/action-interfaces/action-interface-1'
action: getOtherContactssearch
map:
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
mappings: []
filter:
where:
query: example
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
limit: 10
- for-each:
name: For each
assembly:
$ref: '#/integration/assemblies/assembly-2'
source:
expression: >-
$GoogleContactsRetrieveothercontactsbysearchstring."Other
contacts"
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: GoogleContactsRetrieveothercontactsbysearchstring
$ref: >-
#/node-output/Google Contacts Retrieve other contacts by
search string/response/payload
- variable: MailChimpRetrievemembers
$ref: '#/node-output/MailChimp Retrieve members/response/payload'
- variable: MailChimpRetrievemembersMetadata
$ref: '#/node-output/MailChimp Retrieve members/response'
- variable: flowDetails
$ref: '#/flowDetails'
mode: sequential
continue-on-error: true
map:
$map: http://ibm.com/appconnect/map/v1
mappings: []
display-name: Google Contacts Other contacts
assembly-2:
assembly:
execute:
- create-action:
name: MailChimp Add subscriber to a list
target:
$ref: '#/integration/action-interfaces/action-interface-2'
map:
mappings:
- email_address:
template: '{{$Foreachitem.person.emailAddress}}'
- list_id:
template: 6fc8383307
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Foreach2item
$ref: '#/block/For each 2/current-item'
- variable: Foreachitem
$ref: '#/block/For each/current-item'
- variable: Trigger
$ref: '#/trigger/payload'
- variable: GoogleContactsRetrieveothercontactsbysearchstring
$ref: >-
#/node-output/Google Contacts Retrieve other contacts by
search string/response/payload
- variable: MailChimpRetrievemembers
$ref: '#/node-output/MailChimp Retrieve members/response/payload'
- variable: MailChimpRetrievemembersMetadata
$ref: '#/node-output/MailChimp Retrieve members/response'
- variable: flowDetails
$ref: '#/flowDetails'
name: Add subscribers to a list in MailChimp for each other contact retrieved from Google Contacts
models: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: trigger-action
trigger-interfaces:
trigger-interface-1:
connector-type: asana
type: event-trigger
triggers:
CREATED:
input-context:
data: Tasks
assembly:
$ref: '#/integration/assemblies/assembly-1'
options:
workspace-id: '182723897938599'
team-id: '182723898008235'
project: '747865922507849'
parentFilter:
workspace-id: '182723897938599'
team-id: '182723898008235'
project: '747865922507849'
action-interfaces:
action-interface-2:
type: api-action
business-object: message
connector-type: slack
actions:
CREATE: {}
action-interface-1:
type: api-action
business-object: patchUsersByUserIdOnenotePagesByPageIdContent_model
connector-type: msonenote
actions:
patchUsersByUserIdOnenotePagesByPageIdContent: {}
action-interface-3:
type: api-action
business-object: patchUsersByUserIdOnenotePagesByPageIdContent_model
connector-type: msonenote
actions:
patchUsersByUserIdOnenotePagesByPageIdContent: {}
assemblies:
assembly-1:
assembly:
execute:
- create-action:
name: Slack Send message
target:
$ref: '#/integration/action-interfaces/action-interface-2'
map:
mappings:
- OBJECT_ID:
template: C05AY19GTQE
- OBJECT_NAME:
template: channel
- text:
template: '{{$Trigger}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
- if:
name: If
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: SlackSendmessage
$ref: '#/node-output/Slack Send message/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
branch:
- condition:
'{{$Trigger.assignee_status}}': upcoming
execute:
- custom-action:
name: Microsoft OneNote Append note
target:
$ref: '#/integration/action-interfaces/action-interface-1'
action: patchUsersByUserIdOnenotePagesByPageIdContent
map:
mappings:
- content:
template: '{{$Trigger.name}} needs to be Assigned'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: SlackSendmessage
$ref: >-
#/node-output/Slack Send
message/response/payload
- variable: flowDetails
$ref: '#/flowDetails'
filter:
where:
and:
- page_id: >-
1-334f4b8694f44545912bc52d0664b70a!59-ccf3b9c3-8c79-4515-a355-be19f77408d9
- user_id: me
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: SlackSendmessage
$ref: >-
#/node-output/Slack Send
message/response/payload
- variable: flowDetails
$ref: '#/flowDetails'
limit: 10
else:
execute:
- custom-action:
name: Microsoft OneNote Append note 2
target:
$ref: '#/integration/action-interfaces/action-interface-3'
action: patchUsersByUserIdOnenotePagesByPageIdContent
map:
mappings:
- content:
template: '{{$Trigger.name}} is already assigned'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: SlackSendmessage
$ref: '#/node-output/Slack Send message/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
filter:
where:
and:
- page_id: >-
1-334f4b8694f44545912bc52d0664b70a!14-ca5664ce-680c-4a1f-b481-0b1c66591bb9
- user_id: me
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: SlackSendmessage
$ref: '#/node-output/Slack Send message/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
limit: 10
output-schema: {}
name: Append a note in Microsoft OneNote when a task is created in Asana
models: {}
Loading

0 comments on commit 2d6ad49

Please sign in to comment.