Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates generated using AI: Set-2 master #398

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
$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-2:
type: api-action
business-object: folders
connector-type: dropbox
actions:
CREATE: {}
action-interface-1:
type: api-action
business-object: Event
connector-type: eventbrite
actions:
RETRIEVEALL: {}
assemblies:
assembly-1:
assembly:
execute:
- retrieve-action:
name: Eventbrite Retrieve events
target:
$ref: '#/integration/action-interfaces/action-interface-1'
filter:
where:
and:
- status: New
- organizer_id: '344797520005'
- organizationID: '344797520005'
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
limit: 10
allow-truncation: true
pagination-type: SKIP_LIMIT
allow-empty-output: true
- for-each:
name: For each
assembly:
$ref: '#/integration/assemblies/assembly-2'
source:
expression: '$EventbriteRetrieveevents '
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: EventbriteRetrieveevents
$ref: '#/node-output/Eventbrite Retrieve events/response/payload'
- variable: EventbriteRetrieveeventsMetadata
$ref: '#/node-output/Eventbrite Retrieve events/response'
- variable: flowDetails
$ref: '#/flowDetails'
mode: sequential
continue-on-error: true
map:
$map: http://ibm.com/appconnect/map/v1
mappings: []
display-name: Eventbrite Event
assembly-2:
assembly:
execute:
- create-action:
name: Dropbox Create folder
target:
$ref: '#/integration/action-interfaces/action-interface-2'
map:
mappings:
- path:
template: '{{$Foreachitem.url}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Foreachitem
$ref: '#/block/For each/current-item'
- variable: Trigger
$ref: '#/trigger/payload'
- variable: EventbriteRetrieveevents
$ref: '#/node-output/Eventbrite Retrieve events/response/payload'
- variable: EventbriteRetrieveeventsMetadata
$ref: '#/node-output/Eventbrite Retrieve events/response'
- variable: flowDetails
$ref: '#/flowDetails'
name: >-
Create a folder in Dropbox for each event retrieved from Eventbrite
models: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
$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: Event
actions:
RETRIEVEALL: {}
connector-type: eventbrite
action-interface-2:
type: api-action
business-object: folder
actions:
CREATE: {}
connector-type: ibmopenpages
assemblies:
assembly-1:
assembly:
execute:
- retrieve-action:
name: Eventbrite Retrieve events
target:
$ref: '#/integration/action-interfaces/action-interface-1'
filter:
where:
and:
- status: New
- organizer_id: '344797520005'
- organizationID: '344797520005'
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
limit: 10
allow-truncation: true
pagination-type: SKIP_LIMIT
allow-empty-output: true
- for-each:
name: For each
assembly:
$ref: '#/integration/assemblies/assembly-2'
source:
expression: '$EventbriteRetrieveevents '
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: EventbriteRetrieveevents
$ref: '#/node-output/Eventbrite Retrieve events/response/payload'
- variable: EventbriteRetrieveeventsMetadata
$ref: '#/node-output/Eventbrite Retrieve events/response'
- variable: flowDetails
$ref: '#/flowDetails'
mode: sequential
continue-on-error: true
map:
$map: http://ibm.com/appconnect/map/v1
mappings: []
display-name: Eventbrite Event
assembly-2:
assembly:
execute:
- create-action:
name: IBM OpenPages with Watson Create folder
target:
$ref: '#/integration/action-interfaces/action-interface-2'
map:
mappings:
- name:
template: '{{$Foreachitem.name.html}}'
- parentFolderId:
template: 1
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Foreachitem
$ref: '#/block/For each/current-item'
- variable: Trigger
$ref: '#/trigger/payload'
- variable: EventbriteRetrieveevents
$ref: '#/node-output/Eventbrite Retrieve events/response/payload'
- variable: EventbriteRetrieveeventsMetadata
$ref: '#/node-output/Eventbrite Retrieve events/response'
- variable: flowDetails
$ref: '#/flowDetails'
name: >-
Create a folder in IBM Open Pages For Watson for each event retrieved from Eventbrite
models: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
$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: Opportunity
assembly:
$ref: '#/integration/assemblies/assembly-1'
options: {}
connector-type: insightly
action-interfaces:
action-interface-1:
type: api-action
business-object: Folder
actions:
CREATE: {}
connector-type: box
action-interface-2:
type: api-action
business-object: mail
actions:
CREATEEMAIL: {}
connector-type: email
assemblies:
assembly-1:
assembly:
execute:
- custom-action:
name: Email Send email
target:
$ref: '#/integration/action-interfaces/action-interface-2'
action: CREATEEMAIL
map:
mappings:
- attachmentForCreate:
foreach:
mappings:
- contentType:
template: application/octet-stream
input: '$Trigger.CUSTOMFIELDS '
iterator: attachmentForCreateItem
- emailBody:
template: '{{$Trigger.VISIBLE_TO}}'
- subjectFilter:
template: Hello from Insightly
- toFilter:
template: [email protected]
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
- create-action:
name: Box Create folder
target:
$ref: '#/integration/action-interfaces/action-interface-1'
map:
mappings:
- name:
template: '{{$Trigger.OPPORTUNITY_NAME}}'
- parent_id:
template: '0'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: EmailSendemail
$ref: '#/node-output/Email Send email/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
name: Create folder in Box when a new opportunity is created in Insightly
models: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
$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: Opportunity
assembly:
$ref: '#/integration/assemblies/assembly-1'
options: {}
connector-type: salesforce
action-interfaces:
action-interface-1:
type: api-action
business-object: Folder
actions:
CREATE: {}
connector-type: box
action-interface-2:
type: api-action
business-object: mail
actions:
CREATEEMAIL: {}
connector-type: email
assemblies:
assembly-1:
assembly:
execute:
- custom-action:
name: Email Send email
target:
$ref: '#/integration/action-interfaces/action-interface-2'
action: CREATEEMAIL
map:
mappings:
- attachmentForCreate:
foreach:
input: $Trigger.Id
iterator: attachmentForCreateItem
mappings:
- contentType:
template: application/octet-stream
- toFilter:
template: [email protected]
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
- create-action:
name: Box Create folder
target:
$ref: '#/integration/action-interfaces/action-interface-1'
map:
mappings:
- name:
template: '{{$Trigger.Name}}'
- parent_id:
template: '0'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: EmailSendemail
$ref: '#/node-output/Email Send email/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
name: Create folder in Box when new opportunity created in Salesforce
models: {}
Loading
Loading