$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: Card connector-type: trello actions: RETRIEVEALL: {} action-interface-2: type: api-action business-object: Board connector-type: trello actions: RETRIEVEALL: {} action-interface-3: type: api-action business-object: List connector-type: trello actions: RETRIEVEALL: {} action-interface-4: type: api-action business-object: message connector-type: slack actions: CREATE: {} assemblies: assembly-1: assembly: execute: - retrieve-action: name: Trello Retrieve boards target: $ref: '#/integration/action-interfaces/action-interface-2' filter: where: idOrganization: 588b7203d55b672162fedf00 input: - variable: Trigger $ref: '#/trigger/payload' - variable: flowDetails $ref: '#/flowDetails' limit: 10 allow-truncation: false allow-empty-output: false - set-variable: name: Set variable map: $map: http://ibm.com/appconnect/map/v1 customSchemas: properties.`variable`: type: object properties: BoardID: type: string input: - variable: Trigger $ref: '#/trigger/payload' - variable: TrelloRetrieveboards $ref: '#/node-output/Trello Retrieve boards/response/payload' - variable: TrelloRetrieveboardsMetadata $ref: '#/node-output/Trello Retrieve boards/response' - variable: flowDetails $ref: '#/flowDetails' mappings: - variable: mappings: - BoardID: template: >- {{$TrelloRetrieveboards[name="Event planning"].id}} - logging: name: Log map: $map: http://ibm.com/appconnect/map/v1 mappings: - logLevel: template: Info - logMessage: template: 'Board id: {{$Setvariable.variable.BoardID}}' input: - variable: Trigger $ref: '#/trigger/payload' - variable: TrelloRetrieveboards $ref: '#/node-output/Trello Retrieve boards/response/payload' - variable: TrelloRetrieveboardsMetadata $ref: '#/node-output/Trello Retrieve boards/response' - variable: Setvariable $ref: '#/node-output/Set variable/response/payload' - variable: flowDetails $ref: '#/flowDetails' - retrieve-action: name: Trello Retrieve lists target: $ref: '#/integration/action-interfaces/action-interface-3' filter: where: and: - idBoard: 5894d7622ae1b7ae3aa7e4b6 - idOrganization: 588b7203d55b672162fedf00 input: - variable: Trigger $ref: '#/trigger/payload' - variable: TrelloRetrieveboards $ref: '#/node-output/Trello Retrieve boards/response/payload' - variable: TrelloRetrieveboardsMetadata $ref: '#/node-output/Trello Retrieve boards/response' - variable: Setvariable $ref: '#/node-output/Set variable/response/payload' - variable: flowDetails $ref: '#/flowDetails' limit: 10 allow-truncation: false allow-empty-output: false - set-variable: name: Set variable 2 map: $map: http://ibm.com/appconnect/map/v1 customSchemas: properties.`variable`: type: object properties: ListID: type: string input: - variable: Trigger $ref: '#/trigger/payload' - variable: TrelloRetrieveboards $ref: '#/node-output/Trello Retrieve boards/response/payload' - variable: TrelloRetrieveboardsMetadata $ref: '#/node-output/Trello Retrieve boards/response' - variable: Setvariable $ref: '#/node-output/Set variable/response/payload' - variable: TrelloRetrievelists $ref: '#/node-output/Trello Retrieve lists/response/payload' - variable: TrelloRetrievelistsMetadata $ref: '#/node-output/Trello Retrieve lists/response' - variable: flowDetails $ref: '#/flowDetails' mappings: - variable: mappings: - ListID: template: '{{$TrelloRetrievelists[name="Interconnect"].id}}' - retrieve-action: name: Trello Retrieve card target: $ref: '#/integration/action-interfaces/action-interface-1' filter: where: idList: '{{$Setvariable2.variable.ListID}}' input: - variable: Trigger $ref: '#/trigger/payload' - variable: TrelloRetrieveboards $ref: '#/node-output/Trello Retrieve boards/response/payload' - variable: TrelloRetrieveboardsMetadata $ref: '#/node-output/Trello Retrieve boards/response' - variable: Setvariable $ref: '#/node-output/Set variable/response/payload' - variable: TrelloRetrievelists $ref: '#/node-output/Trello Retrieve lists/response/payload' - variable: TrelloRetrievelistsMetadata $ref: '#/node-output/Trello Retrieve lists/response' - variable: Setvariable2 $ref: '#/node-output/Set variable 2/response/payload' - variable: flowDetails $ref: '#/flowDetails' limit: 10 allow-truncation: true allow-empty-output: false - logging: name: Log 2 map: $map: http://ibm.com/appconnect/map/v1 mappings: - logLevel: template: Info - logMessage: template: |- List ID: {{$Setvariable2.variable.ListID}} Card names: {{$join($TrelloRetrievecard.name , ' \n')}} input: - variable: Trigger $ref: '#/trigger/payload' - variable: TrelloRetrieveboards $ref: '#/node-output/Trello Retrieve boards/response/payload' - variable: TrelloRetrieveboardsMetadata $ref: '#/node-output/Trello Retrieve boards/response' - variable: Setvariable $ref: '#/node-output/Set variable/response/payload' - variable: TrelloRetrievelists $ref: '#/node-output/Trello Retrieve lists/response/payload' - variable: TrelloRetrievelistsMetadata $ref: '#/node-output/Trello Retrieve lists/response' - variable: Setvariable2 $ref: '#/node-output/Set variable 2/response/payload' - variable: TrelloRetrievecard $ref: '#/node-output/Trello Retrieve card/response/payload' - variable: TrelloRetrievecardMetadata $ref: '#/node-output/Trello Retrieve card/response' - variable: flowDetails $ref: '#/flowDetails' - create-action: name: Slack Send message target: $ref: '#/integration/action-interfaces/action-interface-4' map: mappings: - channel: template: C3HECF803 - text: template: >- List ID: {{$Setvariable2.variable.ListID}}{{$join(['\n','Card names:\n'])}}{{$join($TrelloRetrievecard.name, '\n\n')}} $map: http://ibm.com/appconnect/map/v1 input: - variable: Trigger $ref: '#/trigger/payload' - variable: TrelloRetrieveboards $ref: '#/node-output/Trello Retrieve boards/response/payload' - variable: TrelloRetrieveboardsMetadata $ref: '#/node-output/Trello Retrieve boards/response' - variable: Setvariable $ref: '#/node-output/Set variable/response/payload' - variable: TrelloRetrievelists $ref: '#/node-output/Trello Retrieve lists/response/payload' - variable: TrelloRetrievelistsMetadata $ref: '#/node-output/Trello Retrieve lists/response' - variable: Setvariable2 $ref: '#/node-output/Set variable 2/response/payload' - variable: TrelloRetrievecard $ref: '#/node-output/Trello Retrieve card/response/payload' - variable: TrelloRetrievecardMetadata $ref: '#/node-output/Trello Retrieve card/response' - variable: flowDetails $ref: '#/flowDetails' name: Retrieve cards from a Trello list models: {}