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

Front connector templates #455

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c8b7861
Add files via upload
jaisree-jai Jul 2, 2024
2d48d42
Added front yaml files
jaisree-jai Jul 2, 2024
8a2f435
Update template-metadata.json
jaisree-jai Jul 2, 2024
47bd164
Update template-metadata.json
jaisree-jai Jul 2, 2024
8448a00
Rename Create new contacts in front from google sheets_instructions.m…
jaisree-jai Jul 2, 2024
73bfbcc
Rename Create new contacts in front from google sheets .yaml to Creat…
jaisree-jai Jul 2, 2024
460d60c
Rename Create new contacts in front from google sheets _instructions.…
jaisree-jai Jul 2, 2024
ec594e4
Update template-metadata.json
jaisree-jai Jul 2, 2024
c0e260a
Update Create new contacts in front from google sheets.yaml
jaisree-jai Jul 2, 2024
74e5604
Rename Create new contacts in front from google sheets_instructions.m…
jaisree-jai Jul 2, 2024
a9af26e
Update template-metadata.json
jaisree-jai Jul 2, 2024
f68203e
Delete resources/Create new contacts in front from google sheets_inst…
jaisree-jai Jul 2, 2024
8960616
Delete resources/Create new contacts in front from google sheets.yaml
jaisree-jai Jul 2, 2024
1f79d4c
Add files via upload
jaisree-jai Jul 2, 2024
902eb64
Add files via upload
jaisree-jai Jul 2, 2024
54b1308
Add files via upload
jaisree-jai Jul 2, 2024
7ba5af2
Rename Create New message for contacts in contact list in hubspot_ins…
jaisree-jai Jul 2, 2024
dcf1772
Rename Create new front comments when deal stages get updated in hubS…
jaisree-jai Jul 2, 2024
939c7cf
Delete Create New message for contacts in contact list in hubspot_ins…
jaisree-jai Jul 2, 2024
aa8f50e
Delete Create new front comments when deal stages get updated in hubS…
jaisree-jai Jul 2, 2024
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,124 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: trigger-action
trigger-interfaces:
trigger-interface-1:
type: event-trigger
connector-type: streaming-connector-scheduler
triggers:
SCHEDULE:
assembly:
$ref: '#/integration/assemblies/assembly-1'
input-context:
data: scheduler
options:
subscription:
scheduleConfiguration:
interval:
unit: minute
value: 1
runOnceOncheck: true
days:
- MON
- TUE
- WED
- THU
- FRI
- SAT
- SUN
timeZone: UTC
action-interfaces:
action-interface-3:
type: api-action
business-object: postChannelsByChannelIdMessages_model
connector-type: front
actions:
postChannelsByChannelIdMessages: {}
action-interface-1:
type: api-action
business-object: getContactsV1Lists_model
connector-type: hubspotmarketing
actions:
RETRIEVEALL: {}
assemblies:
assembly-1:
assembly:
execute:
- retrieve-action:
allow-empty-output: true
allow-truncation: true
name: HubSpot Marketing Retrieve contact lists
target:
$ref: '#/integration/action-interfaces/action-interface-1'
filter:
limit: 10
- for-each:
map:
$map: http://ibm.com/appconnect/map/v1
customSchemas:
properties.`output`:
type: object
properties:
email:
type: string
input:
- variable: GoogleGroupsRetrievegroups
$ref: >-
#/node-output/Google Groups Retrieve
groups/response/payload
- variable: GoogleGroupsRetrievegroupsMetadata
$ref: '#/node-output/Google Groups Retrieve groups/response'
- variable: GoogleGroupsRetrievemembers
$ref: >-
#/node-output/Google Groups Retrieve
members/response/payload
- variable: GoogleGroupsRetrievemembersMetadata
$ref: '#/node-output/Google Groups Retrieve members/response'
- variable: FrontCreateMessage
$ref: >-
#/block/For each/node-output/Front Create
Message/response/payload
- variable: Foreachitem
$ref: '#/block/For each/current-item'
- variable: flowDetails
$ref: '#/flowDetails'
mappings: []
source:
expression: '$HubSpotMarketingRetrievecontactlists '
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
mode: sequential
continue-on-error: true
name: For each
assembly:
$ref: '#/integration/assemblies/assembly-2'
display-name: hubspot Groups Group members
assembly-2:
assembly:
execute:
- custom-action:
action: postChannelsByChannelIdMessages
name: Front Create Message
target:
$ref: '#/integration/action-interfaces/action-interface-3'
map:
mappings:
- body:
template: '{{$HubSpotMarketingRetrievecontactlists}}'
- channel_id:
template: cha_g4xwc
- to:
expression: '["[email protected]"]'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: Foreachitem
$ref: '#/block/For each/current-item'
- variable: flowDetails
$ref: '#/flowDetails'
name: Create New message in Front for contacts in contact list in hubspot
models: {}
254 changes: 254 additions & 0 deletions resources/Create new contacts in front from google sheets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: trigger-action
trigger-interfaces:
trigger-interface-1:
type: event-trigger
connector-type: streaming-connector-scheduler
triggers:
SCHEDULE:
assembly:
$ref: '#/integration/assemblies/assembly-1'
input-context:
data: scheduler
options:
subscription:
scheduleConfiguration:
interval:
unit: minute
value: 1
runOnceOncheck: false
days:
- MON
- TUE
- WED
- THU
- FRI
- SAT
- SUN
timeZone: UTC
action-interfaces:
action-interface-2:
type: api-action
business-object: worksheetRow
connector-type: googlesheet
actions:
RETRIEVEALL: {}
action-interface-3:
type: api-action
business-object: postContacts_model
connector-type: front
actions:
postContacts: {}
action-interface-1:
type: api-action
business-object: postAccountsByIdContacts_model
connector-type: front
actions:
postAccountsByIdContacts: {}
action-interface-4:
type: api-action
business-object: getAccountsByIdContacts_model
connector-type: front
actions:
getAccountsByIdContacts: {}
action-interface-5:
type: api-action
business-object: postChannelsByIdMessages_model
connector-type: front
actions:
postChannelsByIdMessages: {}
assemblies:
assembly-1:
assembly:
execute:
- retrieve-action:
allow-empty-output: true
allow-truncation: true
name: Google Sheets Retrieve rows
target:
$ref: '#/integration/action-interfaces/action-interface-2'
filter:
limit: 25
where:
and:
- spreadsheetID: 1_s_ojnWjQY7i6pcBDcyhN0tOYU85jKUXdBYgGp2HVQs
- worksheetID: Sheet1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
pagination-type: SKIP_LIMIT
- for-each:
map:
$map: http://ibm.com/appconnect/map/v1
customSchemas:
properties.`output`:
type: object
properties:
name:
type: string
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: GoogleSheetsRetrieverows
$ref: '#/node-output/Google Sheets Retrieve rows/response/payload'
- variable: GoogleSheetsRetrieverowsMetadata
$ref: '#/node-output/Google Sheets Retrieve rows/response'
- variable: FrontCreatecontact
$ref: >-
#/block/For each/node-output/Front Create
contact/response/payload
- variable: FrontAddcontactstoaccount
$ref: >-
#/block/For each/node-output/Front Add contacts to
account/response/payload
- variable: Foreachitem
$ref: '#/block/For each/current-item'
- variable: flowDetails
$ref: '#/flowDetails'
mappings: []
source:
expression: >-
$GoogleSheetsRetrieverows[[1..$count($GoogleSheetsRetrieverows)-1]]
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: GoogleSheetsRetrieverows
$ref: '#/node-output/Google Sheets Retrieve rows/response/payload'
- variable: GoogleSheetsRetrieverowsMetadata
$ref: '#/node-output/Google Sheets Retrieve rows/response'
- variable: flowDetails
$ref: '#/flowDetails'
mode: sequential
continue-on-error: true
name: For each
assembly:
$ref: '#/integration/assemblies/assembly-2'
display-name: Google Sheets Title
- custom-action:
action: getAccountsByIdContacts
name: Front Retrieve account contacts
target:
$ref: '#/integration/action-interfaces/action-interface-4'
map:
mappings:
- id:
template: acc_e0vyak
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: GoogleSheetsRetrieverows
$ref: '#/node-output/Google Sheets Retrieve rows/response/payload'
- variable: GoogleSheetsRetrieverowsMetadata
$ref: '#/node-output/Google Sheets Retrieve rows/response'
- variable: Foreach
$ref: '#/node-output/For each/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
filter:
where:
id: acc_e0vyak
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: GoogleSheetsRetrieverows
$ref: '#/node-output/Google Sheets Retrieve rows/response/payload'
- variable: GoogleSheetsRetrieverowsMetadata
$ref: '#/node-output/Google Sheets Retrieve rows/response'
- variable: Foreach
$ref: '#/node-output/For each/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
allow-empty-output: true
- custom-action:
action: postChannelsByIdMessages
name: Front Create message
target:
$ref: '#/integration/action-interfaces/action-interface-5'
map:
mappings:
- body:
template: '{{$Foreach}}'
- id:
template: cha_g4xwc
- to:
expression: '["[email protected]"]'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: GoogleSheetsRetrieverows
$ref: '#/node-output/Google Sheets Retrieve rows/response/payload'
- variable: GoogleSheetsRetrieverowsMetadata
$ref: '#/node-output/Google Sheets Retrieve rows/response'
- variable: Foreach
$ref: '#/node-output/For each/response/payload'
- variable: FrontRetrieveaccountcontacts
$ref: >-
#/node-output/Front Retrieve account
contacts/response/payload
- variable: flowDetails
$ref: '#/flowDetails'
assembly-2:
assembly:
execute:
- custom-action:
action: postContacts
name: Front Create contact
target:
$ref: '#/integration/action-interfaces/action-interface-3'
map:
mappings:
- handles:
foreach:
input: '{}'
iterator: handlesItem
mappings:
- handle:
template: '{{$GoogleSheetsRetrieverows.values[0]}}'
- source:
template: '{{$GoogleSheetsRetrieverows.values[1]}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: GoogleSheetsRetrieverows
$ref: '#/node-output/Google Sheets Retrieve rows/response/payload'
- variable: GoogleSheetsRetrieverowsMetadata
$ref: '#/node-output/Google Sheets Retrieve rows/response'
- variable: Foreachitem
$ref: '#/block/For each/current-item'
- variable: flowDetails
$ref: '#/flowDetails'
- custom-action:
action: postAccountsByIdContacts
name: Front Add contacts to account
target:
$ref: '#/integration/action-interfaces/action-interface-1'
map:
mappings:
- contact_ids:
expression: '$FrontCreatecontact.id '
- id:
template: acc_e0vyak
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: GoogleSheetsRetrieverows
$ref: '#/node-output/Google Sheets Retrieve rows/response/payload'
- variable: GoogleSheetsRetrieverowsMetadata
$ref: '#/node-output/Google Sheets Retrieve rows/response'
- variable: FrontCreatecontact
$ref: >-
#/block/For each/node-output/Front Create
contact/response/payload
- variable: Foreachitem
$ref: '#/block/For each/current-item'
- variable: flowDetails
$ref: '#/flowDetails'
name: Create new contacts in front from google sheets
models: {}
Loading
Loading