Skip to content

Commit

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

* shahmini master epic3358 [10]

* shahmini master epic3358 [10]

* shahmini master epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* epic3358 [10]

* Update template-metadata.json

sync master and batch 9 entries

* Update template-metadata.json

Batch 10 shahmini master
  • Loading branch information
shahminiaru authored Jan 28, 2024
1 parent fabcf16 commit e6fc93c
Show file tree
Hide file tree
Showing 25 changed files with 1,866 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
$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: cct_Company
assembly:
$ref: '#/integration/assemblies/assembly-1'
options:
subscription:
createdField: startDate
updatedField: startDate
timeFormat: YYYY-MM-DDTHH:mm:ssZ
timeZone: UTC
pollingInterval: 1
isCreatedQueryable: true
connector-type: mssql
action-interfaces:
action-interface-2:
type: api-action
business-object: Contact
connector-type: salesforce
actions:
CREATE: {}
assemblies:
assembly-1:
assembly:
execute:
- create-action:
name: Salesforce Create contact
target:
$ref: '#/integration/action-interfaces/action-interface-2'
map:
mappings:
- LastName:
template: '{{$Trigger.companyname}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
name: Create a contact in Salesforce when a new company record is created in Microsoft SQL Server
models: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: trigger-action
trigger-interfaces:
trigger-interface-1:
connector-type: salesforce
type: event-trigger
triggers:
CREATED_POLLER:
input-context:
data: Document
assembly:
$ref: '#/integration/assemblies/assembly-1'
options:
subscription:
createdField: CreatedDate
updatedField: LastModifiedDate
timeFormat: YYYY-MM-DDTHH:mm:ssZ
timeZone: UTC
pollingInterval: 1
isCreatedQueryable: true
action-interfaces:
action-interface-2:
type: api-action
business-object: File
connector-type: box
actions:
CREATE: {}
action-interface-1:
type: api-action
business-object: File
connector-type: box
actions:
RETRIEVEALL: {}
assemblies:
assembly-1:
assembly:
execute:
- retrieve-action:
name: Box Retrieve file metadata
target:
$ref: '#/integration/action-interfaces/action-interface-1'
filter:
where:
id: '{{$Trigger.Id}}'
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
limit: 1
allow-truncation: true
pagination-type: SKIP_LIMIT
allow-empty-output: true
- if:
name: If
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: BoxRetrievefilemetadata
$ref: '#/node-output/Box Retrieve file metadata/response/payload'
- variable: BoxRetrievefilemetadataMetadata
$ref: '#/node-output/Box Retrieve file metadata/response'
- variable: flowDetails
$ref: '#/flowDetails'
branch:
- condition:
'{{$BoxRetrievefilemetadataMetadata."status-code"}}':
neq: '200'
execute:
- create-action:
name: Box Create file
target:
$ref: '#/integration/action-interfaces/action-interface-2'
map:
mappings:
- fileType:
template: Text
- name:
template: '{{$Trigger.Name}}'
- parent_id:
template: '186657742772'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: BoxRetrievefilemetadata
$ref: >-
#/node-output/Box Retrieve file
metadata/response/payload
- variable: BoxRetrievefilemetadataMetadata
$ref: >-
#/node-output/Box Retrieve file
metadata/response
- variable: flowDetails
$ref: '#/flowDetails'
else:
execute: []
completion-action:
terminate:
info:
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: BoxRetrievefilemetadata
$ref: >-
#/node-output/Box Retrieve file
metadata/response/payload
- variable: BoxRetrievefilemetadataMetadata
$ref: '#/node-output/Box Retrieve file metadata/response'
- variable: flowDetails
$ref: '#/flowDetails'
message: File name {{$Trigger.Id}} is already exist in Box.
status-code: 200
output-schema: {}
name: Create a file in Box for new documents created in Salesforce
models: {}
Loading

0 comments on commit e6fc93c

Please sign in to comment.