diff --git a/resources/Create a task in a list in Microsoft To Do when a new ticket is created in Zendesk Service.yaml b/resources/Create a task in a list in Microsoft To Do when a new ticket is created in Zendesk Service.yaml deleted file mode 100644 index e751a3f32..000000000 --- a/resources/Create a task in a list in Microsoft To Do when a new ticket is created in Zendesk Service.yaml +++ /dev/null @@ -1,198 +0,0 @@ -$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: Ticket - assembly: - $ref: '#/integration/assemblies/assembly-1' - options: - subscription: - createdField: created_at - updatedField: updated_at - timeFormat: YYYY-MM-DDTHH:mm:ss.SSSZ - timeZone: UTC - pollingInterval: 1 - isCreatedQueryable: true - connector-type: zendeskservice - action-interfaces: - action-interface-2: - type: api-action - business-object: postUsersByUserIdTodoListsByTodoTaskListIdTasks_model - connector-type: mstodo - actions: - postUsersByUserIdTodoListsByTodoTaskListIdTasks: {} - action-interface-1: - type: api-action - business-object: postUsersByUserIdTodoListsByTodoTaskListIdTasks_model - connector-type: mstodo - actions: - postUsersByUserIdTodoListsByTodoTaskListIdTasks: {} - action-interface-3: - type: api-action - business-object: postUsersByUserIdTodoListsByTodoTaskListIdTasks_model - connector-type: mstodo - actions: - postUsersByUserIdTodoListsByTodoTaskListIdTasks: {} - action-interface-4: - type: api-action - business-object: postUsersByUserIdTodoListsByTodoTaskListIdTasks_model - connector-type: mstodo - actions: - postUsersByUserIdTodoListsByTodoTaskListIdTasks: {} - assemblies: - assembly-1: - assembly: - execute: - - if: - name: If - input: - - variable: Trigger - $ref: '#/trigger/payload' - - variable: flowDetails - $ref: '#/flowDetails' - branch: - - condition: - '{{$Trigger.type}}': problem - execute: - - custom-action: - name: Microsoft To Do Create task 2 - target: - $ref: '#/integration/action-interfaces/action-interface-2' - action: postUsersByUserIdTodoListsByTodoTaskListIdTasks - map: - mappings: - - body: - mappings: - - content: - template: '{{$Trigger.description}}' - - contentType: - template: text - - dueDateTimeRequest: - template: '{{$Trigger.due_at}}' - - title: - template: '{{$Trigger.subject}}' - - todoTaskListId: - template: >- - AQMkADAwATMwMAItNjMwZC1lMzUzLTAwAi0wMAoALgAAA-iqddhCOYFIqbBYzmYMREEBAM-2hQL9SExJhAVapIRU3isAAAANLvZ7AAAA - - userId: - template: me - $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' - - condition: - '{{$Trigger.type}}': question - execute: - - custom-action: - name: Microsoft To Do Create task 3 - target: - $ref: '#/integration/action-interfaces/action-interface-3' - action: postUsersByUserIdTodoListsByTodoTaskListIdTasks - map: - mappings: - - body: - mappings: - - content: - template: '{{$Trigger.description}}' - - contentType: - template: text - - dueDateTimeRequest: - template: '{{$Trigger.due_at}}' - - title: - template: '{{$Trigger.subject}}' - - todoTaskListId: - template: >- - AQMkADAwATMwMAItNjMwZC1lMzUzLTAwAi0wMAoALgAAA-iqddhCOYFIqbBYzmYMREEBAM-2hQL9SExJhAVapIRU3isAAAANLvZ9AAAA - - userId: - template: me - $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' - - condition: - '{{$Trigger.type}}': incident - execute: - - custom-action: - name: Microsoft To Do Create task 4 - target: - $ref: '#/integration/action-interfaces/action-interface-4' - action: postUsersByUserIdTodoListsByTodoTaskListIdTasks - map: - mappings: - - body: - mappings: - - content: - template: '{{$Trigger.description}}' - - contentType: - template: text - - dueDateTimeRequest: - template: '{{$Trigger.due_at}}' - - title: - template: '{{$Trigger.subject}}' - - todoTaskListId: - template: >- - AQMkADAwATMwMAItNjMwZC1lMzUzLTAwAi0wMAoALgAAA-iqddhCOYFIqbBYzmYMREEBAM-2hQL9SExJhAVapIRU3isAAAANLvZ8AAAA - - userId: - template: me - $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' - else: - execute: - - custom-action: - name: Microsoft To Do Create task - target: - $ref: '#/integration/action-interfaces/action-interface-1' - action: postUsersByUserIdTodoListsByTodoTaskListIdTasks - map: - mappings: - - body: - mappings: - - content: - template: '{{$Trigger.description}}' - - contentType: - template: text - - dueDateTimeRequest: - template: '{{$Trigger.due_at}}' - - title: - template: '{{$Trigger.subject}}' - - todoTaskListId: - template: >- - AQMkADAwATMwMAItNjMwZC1lMzUzLTAwAi0wMAoALgAAA-iqddhCOYFIqbBYzmYMREEBAM-2hQL9SExJhAVapIRU3isAAAANLvZ-AAAA - - userId: - template: me - $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' - output-schema: {} - name: Create a task in a list in Microsoft To Do when a new ticket is created in Zendesk Service -models: {}