-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Usecase added for Crystal Ball (#456)
* Add files via upload * Update template-metadata.json * Create Create an annotation in Crystal Ball for new Mailchimp campaigns_instructions.md * Create Create an annotation in Crystal Ball for any new product created in Shopify_instructions.md * Create Create an annotation in Crystal Ball for any new contact created in Salesforce_instructions.md * Update Create an annotation in Crystal Ball for new Mailchimp campaigns_instructions.md * Update Create an annotation in Crystal Ball for any new product created in Shopify_instructions.md * Update Create an annotation in Crystal Ball for any new contact created in Salesforce_instructions.md * Update Create an annotation in Crystal Ball for any new contact created in Salesforce_instructions.md * Update Create an annotation in Crystal Ball for any new contact created in Salesforce.yaml * Update Create an annotation in Crystal Ball for any new product created in Shopify.yaml * Update Create an annotation in Crystal Ball for new Mailchimp campaigns.yaml * Update and rename Create an annotation in Crystal Ball for any new contact created in Salesforce.yaml to Create an annotation in Crystal Ball for each new contact created in Salesforce.yaml * Update and rename Create an annotation in Crystal Ball for any new product created in Shopify.yaml to Create an annotation in Crystal Ball for each new product created in Shopify.yaml * Rename Create an annotation in Crystal Ball for any new contact created in Salesforce_instructions.md to Create an annotation in Crystal Ball for each new contact created in Salesforce_instructions.md * Rename Create an annotation in Crystal Ball for any new product created in Shopify_instructions.md to Create an annotation in Crystal Ball for each new product created in Shopify_instructions.md * Update template-metadata.json * Corrections --------- Co-authored-by: Deepak Ayilliath <[email protected]>
- Loading branch information
1 parent
f14b0e1
commit cda4bd0
Showing
7 changed files
with
347 additions
and
1 deletion.
There are no files selected for viewing
119 changes: 119 additions & 0 deletions
119
...rces/Create an annotation in Crystal Ball for each new contact created in Salesforce.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
$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-1: | ||
type: api-action | ||
business-object: Contact | ||
connector-type: salesforce | ||
actions: | ||
RETRIEVEALL: {} | ||
action-interface-2: | ||
type: api-action | ||
business-object: postApiV1Annotations_model | ||
connector-type: crystalball | ||
actions: | ||
postApiV1Annotations: {} | ||
assemblies: | ||
assembly-1: | ||
assembly: | ||
execute: | ||
- retrieve-action: | ||
allow-empty-output: false | ||
allow-truncation: true | ||
name: Salesforce Retrieve contacts | ||
target: | ||
$ref: '#/integration/action-interfaces/action-interface-1' | ||
filter: | ||
limit: 10 | ||
where: | ||
CreatedDate: time | ||
input: | ||
- variable: Trigger | ||
$ref: '#/trigger/payload' | ||
- variable: flowDetails | ||
$ref: '#/flowDetails' | ||
pagination-type: TOKEN | ||
- for-each: | ||
map: | ||
$map: http://ibm.com/appconnect/map/v1 | ||
mappings: [] | ||
source: | ||
expression: '$SalesforceRetrievecontacts ' | ||
input: | ||
- variable: Trigger | ||
$ref: '#/trigger/payload' | ||
- variable: SalesforceRetrievecontacts | ||
$ref: >- | ||
#/node-output/Salesforce Retrieve | ||
contacts/response/payload | ||
- variable: SalesforceRetrievecontactsMetadata | ||
$ref: '#/node-output/Salesforce Retrieve contacts/response' | ||
- variable: flowDetails | ||
$ref: '#/flowDetails' | ||
mode: sequential | ||
continue-on-error: true | ||
name: For each | ||
assembly: | ||
$ref: '#/integration/assemblies/assembly-2' | ||
display-name: Salesforce Contact | ||
assembly-2: | ||
assembly: | ||
execute: | ||
- custom-action: | ||
action: postApiV1Annotations | ||
name: Crystal Ball Create annotation | ||
target: | ||
$ref: '#/integration/action-interfaces/action-interface-2' | ||
map: | ||
mappings: | ||
- category: | ||
template: salesforce {{$Foreachitem.Id}} | ||
- description: | ||
template: '{{$Foreachitem.Description}}' | ||
- event_name: | ||
template: contact_create {{$SalesforceRetrievecontacts.LastName}} | ||
- url: | ||
template: salesforce.com | ||
$map: http://ibm.com/appconnect/map/v1 | ||
input: | ||
- variable: Trigger | ||
$ref: '#/trigger/payload' | ||
- variable: SalesforceRetrievecontacts | ||
$ref: >- | ||
#/node-output/Salesforce Retrieve | ||
contacts/response/payload | ||
- variable: SalesforceRetrievecontactsMetadata | ||
$ref: '#/node-output/Salesforce Retrieve contacts/response' | ||
- variable: Foreachitem | ||
$ref: '#/block/For each/current-item' | ||
- variable: flowDetails | ||
$ref: '#/flowDetails' | ||
name: Create an annotation in Crystal Ball for each new contact created in Salesforce | ||
models: {} |
117 changes: 117 additions & 0 deletions
117
resources/Create an annotation in Crystal Ball for each new product created in Shopify.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
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-1: | ||
type: api-action | ||
business-object: product | ||
connector-type: shopify | ||
actions: | ||
RETRIEVEALL: {} | ||
action-interface-2: | ||
type: api-action | ||
business-object: postApiV1Annotations_model | ||
connector-type: crystalball | ||
actions: | ||
postApiV1Annotations: {} | ||
assemblies: | ||
assembly-1: | ||
assembly: | ||
execute: | ||
- retrieve-action: | ||
allow-empty-output: false | ||
allow-truncation: true | ||
name: Shopify Retrieve products | ||
target: | ||
$ref: '#/integration/action-interfaces/action-interface-1' | ||
filter: | ||
limit: 10 | ||
where: | ||
and: | ||
- created_at_min: '{{$Trigger.lastEventTime}}' | ||
- status: active | ||
input: | ||
- variable: Trigger | ||
$ref: '#/trigger/payload' | ||
- variable: flowDetails | ||
$ref: '#/flowDetails' | ||
pagination-type: TOKEN | ||
- for-each: | ||
map: | ||
$map: http://ibm.com/appconnect/map/v1 | ||
mappings: [] | ||
source: | ||
expression: '$ShopifyRetrieveproducts ' | ||
input: | ||
- variable: Trigger | ||
$ref: '#/trigger/payload' | ||
- variable: ShopifyRetrieveproducts | ||
$ref: '#/node-output/Shopify Retrieve products/response/payload' | ||
- variable: ShopifyRetrieveproductsMetadata | ||
$ref: '#/node-output/Shopify Retrieve products/response' | ||
- variable: flowDetails | ||
$ref: '#/flowDetails' | ||
mode: sequential | ||
continue-on-error: true | ||
name: For each | ||
assembly: | ||
$ref: '#/integration/assemblies/assembly-2' | ||
display-name: Shopify product | ||
assembly-2: | ||
assembly: | ||
execute: | ||
- custom-action: | ||
action: postApiV1Annotations | ||
name: Crystal Ball Create annotation | ||
target: | ||
$ref: '#/integration/action-interfaces/action-interface-2' | ||
map: | ||
mappings: | ||
- category: | ||
template: shopify {{$Foreachitem.id}} | ||
- description: | ||
template: '{{$Foreachitem.body_html}}' | ||
- event_name: | ||
template: product_create | ||
- url: | ||
template: shopify.com | ||
$map: http://ibm.com/appconnect/map/v1 | ||
input: | ||
- variable: Trigger | ||
$ref: '#/trigger/payload' | ||
- variable: ShopifyRetrieveproducts | ||
$ref: '#/node-output/Shopify Retrieve products/response/payload' | ||
- variable: ShopifyRetrieveproductsMetadata | ||
$ref: '#/node-output/Shopify Retrieve products/response' | ||
- variable: Foreachitem | ||
$ref: '#/block/For each/current-item' | ||
- variable: flowDetails | ||
$ref: '#/flowDetails' | ||
name: Create an annotation in Crystal Ball for each new product created in Shopify | ||
models: {} |
51 changes: 51 additions & 0 deletions
51
resources/Create an annotation in Crystal Ball for new Mailchimp campaigns.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
$integration: http://ibm.com/appconnect/integration/v2/integrationFile | ||
integration: | ||
type: trigger-action | ||
trigger-interfaces: | ||
trigger-interface-1: | ||
type: event-trigger | ||
connector-type: mailchimp | ||
triggers: | ||
CREATED: | ||
assembly: | ||
$ref: '#/integration/assemblies/assembly-1' | ||
input-context: | ||
data: Campaigns | ||
options: | ||
list_id: 6fc8383307 | ||
parentFilter: | ||
list_id: 6fc8383307 | ||
action-interfaces: | ||
action-interface-1: | ||
type: api-action | ||
business-object: postApiV1Annotations_model | ||
connector-type: crystalball | ||
actions: | ||
postApiV1Annotations: {} | ||
assemblies: | ||
assembly-1: | ||
assembly: | ||
execute: | ||
- custom-action: | ||
action: postApiV1Annotations | ||
name: Crystal Ball Create annotation | ||
target: | ||
$ref: '#/integration/action-interfaces/action-interface-1' | ||
map: | ||
mappings: | ||
- category: | ||
template: '{{$Trigger.id}} created' | ||
- description: | ||
template: mailchimp | ||
- event_name: | ||
template: campaign | ||
- url: | ||
template: https://mailchimp.com/ | ||
$map: http://ibm.com/appconnect/map/v1 | ||
input: | ||
- variable: Trigger | ||
$ref: '#/trigger/payload' | ||
- variable: flowDetails | ||
$ref: '#/flowDetails' | ||
name: Create an annotation in Crystal Ball for new Mailchimp campaigns | ||
models: {} |
11 changes: 11 additions & 0 deletions
11
...tion in Crystal Ball for each new contact created in Salesforce_instructions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/blob/main/resources/markdown/Create%20an%20annotation%20in%20Crystal%20Ball%20for%20each%20new%20contact%20created%20in%20Salesforce_instructions.md) (opens in a new window). | ||
|
||
1. Click **Use this template** to start using the template. | ||
2. Connect to the following accounts by using your credentials: | ||
- [Salesforce](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-salesforce) | ||
- [Crystal Ball](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-crystal-ball) | ||
3. To start the flow, in the banner, click **Start flow**. | ||
|
||
|
||
Use this template to create an annotation in Crystal Ball for each new contact that is created in Salesforce. | ||
|
10 changes: 10 additions & 0 deletions
10
...otation in Crystal Ball for each new product created in Shopify_instructions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/blob/main/resources/markdown/Create%20an%20annotation%20in%20Crystal%20Ball%20for%20each%20new%20product%20created%20in%20Shopify_instructions.md) (opens in a new window). | ||
|
||
1. Click **Use this template** to start using the template. | ||
2. Connect to the following accounts by using your credentials: | ||
- [Shopify](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-shopify) | ||
- [Crystal Ball](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-crystal-ball) | ||
3. To start the flow, in the banner, click **Start flow**. | ||
|
||
|
||
Use this template to create an annotation in Crystal Ball for each new product that is created in Shopify. |
11 changes: 11 additions & 0 deletions
11
...reate an annotation in Crystal Ball for new Mailchimp campaigns_instructions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
To refer to these instructions while editing the flow, open the [GitHub page](https://github.com/ot4i/app-connect-templates/blob/main/resources/markdown/Create%20an%20annotation%20in%20Crystal%20Ball%20for%20new%20Mailchimp%20campaigns_instructions.md) (opens in a new window). | ||
|
||
1. Click **Use this template** to start using the template. | ||
2. Connect to the following accounts by using your credentials: | ||
- [MailChimp](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-mailchimp) | ||
- [Crystal Ball](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-crystal-ball) | ||
3. To start the flow, in the banner, click **Start flow**. | ||
|
||
|
||
Use this template to create an annotation in Crystal Ball for every new Mailchimp campaign. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters