From 5107d9560b3fb706a2e6231b629e2e5905bbafaf Mon Sep 17 00:00:00 2001 From: Pkatiyar30 <102517223+Pkatiyar30@users.noreply.github.com> Date: Tue, 2 Jul 2024 07:08:38 +0000 Subject: [PATCH 01/12] Add files via upload --- ... Books for each new payment in Square.yaml | 176 ++++ ...ho Books for each new Shopify product.yaml | 303 +++++++ ...ough Gmail for each new Shopify order.yaml | 802 ++++++++++++++++++ ...ough Slack for each new Shopify order.yaml | 191 +++++ 4 files changed, 1472 insertions(+) create mode 100644 resources/Create an expense in Zoho Books for each new payment in Square.yaml create mode 100644 resources/Create an item in Zoho Books for each new Shopify product.yaml create mode 100644 resources/Create and send a Zoho Books invoice through Gmail for each new Shopify order.yaml create mode 100644 resources/Create and send a Zoho Books quote through Slack for each new Shopify order.yaml diff --git a/resources/Create an expense in Zoho Books for each new payment in Square.yaml b/resources/Create an expense in Zoho Books for each new payment in Square.yaml new file mode 100644 index 000000000..2493e288d --- /dev/null +++ b/resources/Create an expense in Zoho Books for each new payment in Square.yaml @@ -0,0 +1,176 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + type: event-trigger + triggers: + SCHEDULE: + input-context: + data: scheduler + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + subscription: + scheduleConfiguration: + interval: + unit: minute + value: 1 + runOnceOncheck: false + days: + - MON + - TUE + - WED + - THU + - FRI + - SAT + - SUN + timeZone: UTC + connector-type: streaming-connector-scheduler + action-interfaces: + action-interface-1: + type: api-action + business-object: payments + connector-type: square + actions: + RETRIEVEALL: {} + action-interface-2: + type: api-action + business-object: getExpenses_model + connector-type: zohobooks + actions: + RETRIEVEALL: {} + action-interface-3: + type: api-action + business-object: postExpense_model + connector-type: zohobooks + actions: + postExpense: {} + assemblies: + assembly-1: + assembly: + execute: + - retrieve-action: + name: Square Retrieve payments + target: + $ref: '#/integration/action-interfaces/action-interface-1' + filter: + where: + and: + - begin_time: '{{$split($Trigger.lastEventTime , "+")[0]}}' + - location_id: LS78PYWXTAFK2 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 100 + allow-truncation: true + pagination-type: TOKEN + allow-empty-output: false + - for-each: + name: For each + assembly: + $ref: '#/integration/assemblies/assembly-2' + source: + expression: '$SquareRetrievepayments ' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + mode: sequential + continue-on-error: true + map: + $map: http://ibm.com/appconnect/map/v1 + mappings: [] + display-name: Square payments + - logging: + name: Log + map: + $map: http://ibm.com/appconnect/map/v1 + mappings: + - logLevel: + template: Info + - logMessage: + template: Expenses are created + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: Foreach + $ref: '#/node-output/For each/response/payload' + - variable: flowDetails + $ref: '#/flowDetails' + tags: + - incomplete + assembly-2: + assembly: + execute: + - retrieve-action: + name: Zoho Books List expenses + target: + $ref: '#/integration/action-interfaces/action-interface-2' + filter: + where: + reference_number: '{{$Foreachitem.id}}' + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: SquareRetrievepayments + $ref: '#/node-output/Square Retrieve payments/response/payload' + - variable: SquareRetrievepaymentsMetadata + $ref: '#/node-output/Square Retrieve payments/response' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10 + allow-truncation: true + pagination-type: SKIP_LIMIT + allow-empty-output: true + - if: + name: If + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$ZohoBooksListexpensesMetadata."status-code"}}': '204' + execute: + - custom-action: + name: Zoho Books Create expense + target: + $ref: '#/integration/action-interfaces/action-interface-3' + action: postExpense + map: + mappings: + - account_id: + template: '1332619000000000570' + - amount: + expression: '$Foreachitem.amount_money.amount ' + - date: + template: '{{$split($Foreachitem.updated_at , "T")[0]}}' + - description: + template: >- + {{$Foreachitem.statement_description_identifier}} + - paid_through_account_id: + template: '1332619000000015012' + - reference_number: + template: '{{$Foreachitem.id}}' + $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' + else: + execute: [] + output-schema: {} + name: Create an expense in Zoho Books for each new payment in Square +models: {} diff --git a/resources/Create an item in Zoho Books for each new Shopify product.yaml b/resources/Create an item in Zoho Books for each new Shopify product.yaml new file mode 100644 index 000000000..83ce99c12 --- /dev/null +++ b/resources/Create an item in Zoho Books for each new Shopify product.yaml @@ -0,0 +1,303 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: api + trigger-interfaces: + trigger-interface-1: + triggers: + createItems: + assembly: + $ref: '#/integration/assemblies/assembly-1' + input-context: + data: Items + output-context: + data: Items + options: + resources: + - business-object: Items + model: + $ref: '#/models/Items' + triggers: + create: createItems + type: api-trigger + action-interfaces: + action-interface-3: + type: api-action + business-object: product + connector-type: shopify + actions: + RETRIEVEALL: {} + action-interface-1: + type: api-action + business-object: postItems_model + connector-type: zohobooks + actions: + postItems: {} + action-interface-2: + type: api-action + business-object: getItems_model + connector-type: zohobooks + actions: + RETRIEVEALL: {} + assemblies: + assembly-1: + assembly: + execute: + - retrieve-action: + name: Shopify Retrieve products + target: + $ref: '#/integration/action-interfaces/action-interface-3' + filter: + limit: 10 + allow-truncation: true + pagination-type: TOKEN + allow-empty-output: false + - for-each: + name: For each + assembly: + $ref: '#/integration/assemblies/assembly-2' + source: + expression: '$ShopifyRetrieveproducts ' + input: + - variable: Request + $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 + map: + $map: http://ibm.com/appconnect/map/v1 + customSchemas: + properties.`output`: + type: object + properties: + id: + type: string + Name: + type: string + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Request + $ref: '#/trigger/payload' + - variable: ZohoBooksListitems + $ref: >- + #/block/For each/node-output/Zoho Books List + items/response/payload + - variable: ZohoBooksListitemsMetadata + $ref: >- + #/block/For each/node-output/Zoho Books List + items/response + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: ShopifyRetrieveproducts + $ref: '#/node-output/Shopify Retrieve products/response/payload' + - variable: ShopifyRetrieveproductsMetadata + $ref: '#/node-output/Shopify Retrieve products/response' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - output: + mappings: + - Name: + template: '{{$If.Name}}' + - id: + template: '{{$If.id}}' + display-name: Shopify product + - response: + name: response-1 + reply-maps: + - title: Customer successfully created + status-code: '201' + map: + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Request + $ref: '#/trigger/payload' + - variable: ShopifyRetrieveproducts + $ref: >- + #/node-output/Shopify Retrieve + products/response/payload + - variable: ShopifyRetrieveproductsMetadata + $ref: '#/node-output/Shopify Retrieve products/response' + - variable: Foreach + $ref: '#/node-output/For each/response/payload' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - Result: + template: >- + Input=>{{$ShopifyRetrieveproducts.title}} + Output=>{{$Foreach.output.Name}} + input: + - variable: Request + $ref: '#/trigger/payload' + - variable: ShopifyRetrieveproducts + $ref: '#/node-output/Shopify Retrieve products/response/payload' + - variable: ShopifyRetrieveproductsMetadata + $ref: '#/node-output/Shopify Retrieve products/response' + - variable: Foreach + $ref: '#/node-output/For each/response/payload' + - variable: flowDetails + $ref: '#/flowDetails' + catch: + - default: + - response: + name: response-1 + reply-maps: + - title: Bad request + status-code: 400 + map: + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Request + $ref: '#/trigger/payload' + - variable: errorDetails + $ref: '#/error' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - message: + template: '{{$errorDetails}}' + input: [] + tags: + - incomplete + assembly-2: + assembly: + execute: + - retrieve-action: + name: Zoho Books List items + target: + $ref: '#/integration/action-interfaces/action-interface-2' + filter: + where: + name: '{{$Foreachitem.title}}' + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Request + $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' + limit: 10 + allow-truncation: false + pagination-type: SKIP_LIMIT + allow-empty-output: true + - if: + name: If + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Request + $ref: '#/trigger/payload' + - variable: ZohoBooksListitems + $ref: >- + #/block/For each/node-output/Zoho Books List + items/response/payload + - variable: ZohoBooksListitemsMetadata + $ref: '#/block/For each/node-output/Zoho Books List items/response' + - variable: ShopifyRetrieveproducts + $ref: '#/node-output/Shopify Retrieve products/response/payload' + - variable: ShopifyRetrieveproductsMetadata + $ref: '#/node-output/Shopify Retrieve products/response' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$ZohoBooksListitemsMetadata."status-code"}}': '204' + execute: + - custom-action: + name: Zoho Books Create item + target: + $ref: '#/integration/action-interfaces/action-interface-1' + action: postItems + map: + mappings: + - name: + template: '{{$Foreachitem.title}}' + - rate: + expression: '$Foreachitem.variants[0].price ' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Request + $ref: '#/trigger/payload' + - variable: ZohoBooksListitems + $ref: >- + #/block/For each/node-output/Zoho Books List + items/response/payload + - variable: ZohoBooksListitemsMetadata + $ref: >- + #/block/For each/node-output/Zoho Books List + items/response + - variable: ShopifyRetrieveproducts + $ref: >- + #/node-output/Shopify Retrieve + products/response/payload + - variable: ShopifyRetrieveproductsMetadata + $ref: '#/node-output/Shopify Retrieve products/response' + - variable: flowDetails + $ref: '#/flowDetails' + map: + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Request + $ref: '#/trigger/payload' + - variable: ZohoBooksCreateitem + $ref: >- + #/block/If/node-output/Zoho Books Create + item/response/payload + - variable: ZohoBooksListitems + $ref: >- + #/block/For each/node-output/Zoho Books List + items/response/payload + - variable: ZohoBooksListitemsMetadata + $ref: >- + #/block/For each/node-output/Zoho Books List + items/response + - variable: ShopifyRetrieveproducts + $ref: >- + #/node-output/Shopify Retrieve + products/response/payload + - variable: ShopifyRetrieveproductsMetadata + $ref: '#/node-output/Shopify Retrieve products/response' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - Name: + template: '{{$ZohoBooksCreateitem.name}}' + - id: + template: '{{$ZohoBooksCreateitem.item_id}}' + else: + execute: [] + output-schema: + type: object + properties: + id: + type: string + Name: + type: string + required: [] + name: Create an item in Zoho Books for each new Shopify product +models: + Items: + name: Items + properties: + Result: + required: false + id: true + type: string + plural: Items + description: ' ' + operations: + create: '#/integration/assemblies/assembly-1' diff --git a/resources/Create and send a Zoho Books invoice through Gmail for each new Shopify order.yaml b/resources/Create and send a Zoho Books invoice through Gmail for each new Shopify order.yaml new file mode 100644 index 000000000..ecdf421d7 --- /dev/null +++ b/resources/Create and send a Zoho Books invoice through Gmail for each new Shopify order.yaml @@ -0,0 +1,802 @@ +$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: 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: order + connector-type: shopify + actions: + RETRIEVEALL: {} + action-interface-2: + type: api-action + business-object: postInvoices_model + connector-type: zohobooks + actions: + postInvoices: {} + action-interface-3: + type: api-action + business-object: mail + connector-type: gmail + actions: + CREATE: {} + action-interface-4: + type: api-action + business-object: customer + connector-type: shopify + actions: + RETRIEVEALL: {} + action-interface-5: + type: api-action + business-object: postCustomers_model + connector-type: zohobooks + actions: + postCustomers: {} + action-interface-6: + type: api-action + business-object: getCustomers_model + connector-type: zohobooks + actions: + RETRIEVEALL: {} + action-interface-7: + type: api-action + business-object: postCustomers_model + connector-type: zohobooks + actions: + postCustomers: {} + action-interface-8: + type: api-action + business-object: getItems_model + connector-type: zohobooks + actions: + RETRIEVEALL: {} + action-interface-9: + type: api-action + business-object: postItems_model + connector-type: zohobooks + actions: + postItems: {} + assemblies: + assembly-1: + assembly: + execute: + - retrieve-action: + name: Shopify Retrieve orders + target: + $ref: '#/integration/action-interfaces/action-interface-1' + filter: + where: + created_at_min: '{{$Trigger.lastEventTime}}' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10 + allow-truncation: true + pagination-type: TOKEN + allow-empty-output: true + - for-each: + name: For each + assembly: + $ref: '#/integration/assemblies/assembly-2' + source: + expression: '$ShopifyRetrieveorders ' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + mode: sequential + continue-on-error: true + map: + $map: http://ibm.com/appconnect/map/v1 + customSchemas: + properties.`output`: + type: object + properties: + id: + type: string + Cusotmer_ID: + type: string + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ShopifyRetrievecustomers + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response/payload + - variable: ShopifyRetrievecustomersMetadata + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: ZohoBooksCreateinvoice + $ref: >- + #/block/For each/node-output/Zoho Books Create + invoice/response/payload + - variable: GmailSendemail + $ref: >- + #/block/For each/node-output/Gmail Send + email/response/payload + - variable: ShopifyRetrieveorders + $ref: '#/node-output/Shopify Retrieve orders/response/payload' + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - output: + mappings: + - Cusotmer_ID: + template: '{{$If.Customer_ID}}' + - id: + template: ' {{$ZohoBooksCreateinvoice.invoice_number}}' + display-name: Shopify order + - logging: + name: Log + map: + $map: http://ibm.com/appconnect/map/v1 + mappings: + - logLevel: + template: Info + - logMessage: + template: Order Number=>{{$Foreach.output.Order_Number}} + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: Foreach + $ref: '#/node-output/For each/response/payload' + - variable: flowDetails + $ref: '#/flowDetails' + tags: + - incomplete + assembly-2: + assembly: + execute: + - retrieve-action: + name: Shopify Retrieve customers + target: + $ref: '#/integration/action-interfaces/action-interface-4' + filter: + where: + id: '{{$Foreachitem.customer.id}}' + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ShopifyRetrieveorders + $ref: '#/node-output/Shopify Retrieve orders/response/payload' + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10 + allow-truncation: true + pagination-type: TOKEN + allow-empty-output: false + - if: + name: If + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$ShopifyRetrievecustomers.email}}': + '=': '' + execute: + - custom-action: + name: Zoho Books Create customer + target: + $ref: '#/integration/action-interfaces/action-interface-5' + action: postCustomers + map: + mappings: + - contact_name: + template: '{{$ShopifyRetrievecustomers.first_name}}' + - contact_persons: + foreach: + input: '[{}]' + iterator: contact_personsItem + mappings: + - first_name: + template: '{{$ShopifyRetrievecustomers.first_name}}' + - last_name: + template: '{{$ShopifyRetrievecustomers.last_name}}' + $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' + map: + mappings: + - Customer_ID: + template: '{{$ZohoBooksCreatecustomer.contact_id}}' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ZohoBooksCreatecustomer + $ref: >- + #/block/If/node-output/Zoho Books Create + customer/response/payload + - variable: ShopifyRetrievecustomers + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response/payload + - variable: ShopifyRetrievecustomersMetadata + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response + - variable: ShopifyRetrieveorders + $ref: '#/node-output/Shopify Retrieve orders/response/payload' + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: + - retrieve-action: + name: Zoho Books Retrieve customers + target: + $ref: '#/integration/action-interfaces/action-interface-6' + filter: + where: + email: '{{$ShopifyRetrievecustomers.email}}' + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ShopifyRetrievecustomers + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response/payload + - variable: ShopifyRetrievecustomersMetadata + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response + - variable: ShopifyRetrieveorders + $ref: >- + #/node-output/Shopify Retrieve + orders/response/payload + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10 + allow-truncation: false + pagination-type: SKIP_LIMIT + allow-empty-output: true + - if: + name: If 2 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$ZohoBooksRetrievecustomersMetadata."status-code"}}': '204' + execute: + - custom-action: + name: Zoho Books Create customer 2 + target: + $ref: >- + #/integration/action-interfaces/action-interface-7 + action: postCustomers + map: + mappings: + - contact_name: + template: '{{$ShopifyRetrievecustomers.first_name}}' + - contact_persons: + foreach: + input: '[{}]' + iterator: contact_personsItem + mappings: + - email: + template: '{{$ShopifyRetrievecustomers.email}}' + - first_name: + template: '{{$ShopifyRetrievecustomers.first_name}}' + - last_name: + template: '{{$ShopifyRetrievecustomers.last_name}}' + $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' + map: + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ZohoBooksCreatecustomer2 + $ref: >- + #/block/If 2/node-output/Zoho Books Create + customer 2/response/payload + - variable: ZohoBooksRetrievecustomers + $ref: >- + #/block/If/node-output/Zoho Books Retrieve + customers/response/payload + - variable: ZohoBooksRetrievecustomersMetadata + $ref: >- + #/block/If/node-output/Zoho Books Retrieve + customers/response + - variable: ShopifyRetrievecustomers + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response/payload + - variable: ShopifyRetrievecustomersMetadata + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response + - variable: ShopifyRetrieveorders + $ref: >- + #/node-output/Shopify Retrieve + orders/response/payload + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - Customer_ID: + template: '{{$ZohoBooksCreatecustomer2.contact_id}}' + else: + execute: [] + map: + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ZohoBooksRetrievecustomers + $ref: >- + #/block/If/node-output/Zoho Books Retrieve + customers/response/payload + - variable: ZohoBooksRetrievecustomersMetadata + $ref: >- + #/block/If/node-output/Zoho Books Retrieve + customers/response + - variable: ShopifyRetrievecustomers + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response/payload + - variable: ShopifyRetrievecustomersMetadata + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response + - variable: ShopifyRetrieveorders + $ref: >- + #/node-output/Shopify Retrieve + orders/response/payload + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - Customer_ID: + template: '{{$ZohoBooksRetrievecustomers.contact_id}}' + output-schema: + type: object + properties: + Customer_ID: + type: string + required: [] + map: + mappings: + - Customer_ID: + template: '{{$If2.Customer_ID}}' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ZohoBooksRetrievecustomers + $ref: >- + #/block/If/node-output/Zoho Books Retrieve + customers/response/payload + - variable: ZohoBooksRetrievecustomersMetadata + $ref: >- + #/block/If/node-output/Zoho Books Retrieve + customers/response + - variable: If2 + $ref: '#/block/If/node-output/If 2/response/payload' + - variable: ShopifyRetrievecustomers + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response/payload + - variable: ShopifyRetrievecustomersMetadata + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response + - variable: ShopifyRetrieveorders + $ref: '#/node-output/Shopify Retrieve orders/response/payload' + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + output-schema: + type: object + properties: + Customer_ID: + type: string + required: [] + - for-each: + name: For each 2 + assembly: + $ref: '#/integration/assemblies/assembly-3' + source: + expression: '$Foreachitem.line_items ' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: flowDetails + $ref: '#/flowDetails' + mode: sequential + continue-on-error: true + map: + $map: http://ibm.com/appconnect/map/v1 + customSchemas: + properties.`output`: + type: object + properties: + Line_Items: + type: array + items: + type: object + properties: + item_id: + type: string + quantity: + type: number + discount: + type: number + input: + - variable: Foreach2item + $ref: '#/block/For each 2/current-item' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ZohoBooksRetrieveitems + $ref: >- + #/block/For each 2/node-output/Zoho Books Retrieve + items/response/payload + - variable: ZohoBooksRetrieveitemsMetadata + $ref: >- + #/block/For each 2/node-output/Zoho Books Retrieve + items/response + - variable: If3 + $ref: '#/block/For each 2/node-output/If 3/response/payload' + - variable: ShopifyRetrievecustomers + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response/payload + - variable: ShopifyRetrievecustomersMetadata + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: ShopifyRetrieveorders + $ref: '#/node-output/Shopify Retrieve orders/response/payload' + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - output: + mappings: + - Line_Items: + foreach: + input: '[{}]' + iterator: Line_ItemsItem + mappings: + - discount: + expression: '$If3.Line_Items.Discount ' + - item_id: + template: '{{$If3.Line_Items.item_id}}' + - quantity: + expression: '$If3.Line_Items.quantity ' + display-name: Shopify Line Items + - custom-action: + name: Zoho Books Create invoice + target: + $ref: '#/integration/action-interfaces/action-interface-2' + action: postInvoices + map: + mappings: + - customer_id: + template: '{{$If.Customer_ID}}' + - line_items: + foreach: + mappings: + - discount: + expression: '$line_itemsItem.discount ' + - item_id: + template: '{{$line_itemsItem.item_id}}' + - quantity: + expression: '$line_itemsItem.quantity ' + input: '$Foreach2.output.Line_Items ' + iterator: line_itemsItem + - reference_number: + template: '{{$Foreachitem.id}}' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: Foreach2 + $ref: '#/block/For each/node-output/For each 2/response/payload' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: flowDetails + $ref: '#/flowDetails' + - create-action: + name: Gmail Send email + target: + $ref: '#/integration/action-interfaces/action-interface-3' + map: + mappings: + - Body: + template: '{{$ZohoBooksCreateinvoice.invoice_id}}' + - To: + template: venkatkona790@gmail.com + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: Foreach2 + $ref: '#/block/For each/node-output/For each 2/response/payload' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: flowDetails + $ref: '#/flowDetails' + assembly-3: + assembly: + execute: + - retrieve-action: + name: Zoho Books Retrieve items + target: + $ref: '#/integration/action-interfaces/action-interface-8' + filter: + where: + name: '{{$Foreach2item.title}}' + input: + - variable: Foreach2item + $ref: '#/block/For each 2/current-item' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ShopifyRetrievecustomers + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response/payload + - variable: ShopifyRetrievecustomersMetadata + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: ShopifyRetrieveorders + $ref: '#/node-output/Shopify Retrieve orders/response/payload' + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10 + allow-truncation: false + pagination-type: SKIP_LIMIT + allow-empty-output: true + - if: + name: If 3 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Foreach2item + $ref: '#/block/For each 2/current-item' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$ZohoBooksRetrieveitemsMetadata."status-code"}}': '204' + execute: + - custom-action: + name: Zoho Books Create item + target: + $ref: '#/integration/action-interfaces/action-interface-9' + action: postItems + map: + mappings: + - name: + template: '{{$Foreach2item.title}}' + - rate: + expression: '$Foreach2item.price ' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Foreach2item + $ref: '#/block/For each 2/current-item' + - variable: flowDetails + $ref: '#/flowDetails' + map: + mappings: + - Line_Items: + foreach: + input: '[{}]' + iterator: Line_ItemsItem + mappings: + - Discount: + expression: '$Foreach2item.total_discount ' + - item_id: + template: '{{$ZohoBooksCreateitem.item_id}}' + - quantity: + expression: '$Foreach2item.quantity ' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreach2item + $ref: '#/block/For each 2/current-item' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ZohoBooksCreateitem + $ref: >- + #/block/If 3/node-output/Zoho Books Create + item/response/payload + - variable: ZohoBooksRetrieveitems + $ref: >- + #/block/For each 2/node-output/Zoho Books Retrieve + items/response/payload + - variable: ZohoBooksRetrieveitemsMetadata + $ref: >- + #/block/For each 2/node-output/Zoho Books Retrieve + items/response + - variable: ShopifyRetrievecustomers + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response/payload + - variable: ShopifyRetrievecustomersMetadata + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: ShopifyRetrieveorders + $ref: '#/node-output/Shopify Retrieve orders/response/payload' + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + else: + execute: [] + map: + mappings: + - Line_Items: + foreach: + input: '[{}]' + iterator: Line_ItemsItem + mappings: + - Discount: + expression: '$Foreach2item.total_discount ' + - item_id: + template: '{{$ZohoBooksRetrieveitems.item_id}}' + - quantity: + expression: '$Foreach2item.quantity ' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: Foreach2item + $ref: '#/block/For each 2/current-item' + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ZohoBooksRetrieveitems + $ref: >- + #/block/For each 2/node-output/Zoho Books Retrieve + items/response/payload + - variable: ZohoBooksRetrieveitemsMetadata + $ref: >- + #/block/For each 2/node-output/Zoho Books Retrieve + items/response + - variable: ShopifyRetrievecustomers + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response/payload + - variable: ShopifyRetrievecustomersMetadata + $ref: >- + #/block/For each/node-output/Shopify Retrieve + customers/response + - variable: If + $ref: '#/block/For each/node-output/If/response/payload' + - variable: ShopifyRetrieveorders + $ref: '#/node-output/Shopify Retrieve orders/response/payload' + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + output-schema: + type: object + properties: + Line_Items: + type: array + items: + type: object + properties: + item_id: + type: string + quantity: + type: number + Discount: + type: number + required: [] + required: [] + name: >- + Create and send a Zoho Books invoice through Gmail for each new Shopify + order +models: {} diff --git a/resources/Create and send a Zoho Books quote through Slack for each new Shopify order.yaml b/resources/Create and send a Zoho Books quote through Slack for each new Shopify order.yaml new file mode 100644 index 000000000..8646ce22e --- /dev/null +++ b/resources/Create and send a Zoho Books quote through Slack for each new Shopify order.yaml @@ -0,0 +1,191 @@ +$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: 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: order + connector-type: shopify + actions: + RETRIEVEALL: {} + action-interface-2: + type: api-action + business-object: postQuotes_model + connector-type: zohobooks + actions: + postQuotes: {} + action-interface-3: + type: api-action + business-object: message + connector-type: slack + actions: + CREATE: {} + assemblies: + assembly-1: + assembly: + execute: + - retrieve-action: + name: Shopify Retrieve orders + target: + $ref: '#/integration/action-interfaces/action-interface-1' + filter: + where: + created_at_min: '{{$Trigger.lastEventTime}}' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + limit: 10 + allow-truncation: true + pagination-type: TOKEN + allow-empty-output: true + - for-each: + name: For each + assembly: + $ref: '#/integration/assemblies/assembly-2' + source: + expression: '$ShopifyRetrieveorders ' + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + mode: sequential + continue-on-error: true + map: + $map: http://ibm.com/appconnect/map/v1 + customSchemas: + properties.`output`: + type: object + properties: + Order_Number: + type: string + id: + type: string + input: + - variable: Foreachitem + $ref: '#/block/For each/current-item' + - variable: Trigger + $ref: '#/trigger/payload' + - variable: ZohoBooksCreatequote + $ref: >- + #/block/For each/node-output/Zoho Books Create + quote/response/payload + - variable: ShopifyRetrieveorders + $ref: '#/node-output/Shopify Retrieve orders/response/payload' + - variable: ShopifyRetrieveordersMetadata + $ref: '#/node-output/Shopify Retrieve orders/response' + - variable: flowDetails + $ref: '#/flowDetails' + mappings: + - output: + mappings: + - Order_Number: + template: '{{$ZohoBooksCreatequote.reference_number}}' + - id: + template: '{{$ZohoBooksCreatequote.estimate_id}}' + display-name: Shopify order + - logging: + name: Log + map: + $map: http://ibm.com/appconnect/map/v1 + mappings: + - logLevel: + template: Info + - logMessage: + template: Order Number=>{{$Foreach.output.Order_Number}} + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: Foreach + $ref: '#/node-output/For each/response/payload' + - variable: flowDetails + $ref: '#/flowDetails' + tags: + - incomplete + assembly-2: + assembly: + execute: + - custom-action: + name: Zoho Books Create quote + target: + $ref: '#/integration/action-interfaces/action-interface-2' + action: postQuotes + map: + mappings: + - customer_id: + template: '1332619000000031077' + - line_items: + foreach: + input: '$Foreachitem.line_items ' + iterator: line_itemsItem + mappings: + - description: + template: '{{$line_itemsItem.title}}' + - discount_amount: + expression: '$line_itemsItem.total_discount ' + - item_id: + template: '1332619000000289019' + - quantity: + expression: '$line_itemsItem.quantity ' + - rate: + expression: '$line_itemsItem.price ' + - reference_number: + template: '{{$Foreachitem.id}}' + $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' + - create-action: + name: Slack Send message + target: + $ref: '#/integration/action-interfaces/action-interface-3' + map: + mappings: + - OBJECT_ID: + template: D05FP3M0YGH + - OBJECT_NAME: + template: im + - text: + template: Quote is ready + $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 and send a Zoho Books quote through Slack for each new Shopify order +models: {} From 9fedcd3a7db92b20cca938d44ff7eede59ead157 Mon Sep 17 00:00:00 2001 From: Pkatiyar30 <102517223+Pkatiyar30@users.noreply.github.com> Date: Tue, 2 Jul 2024 07:09:39 +0000 Subject: [PATCH 02/12] Add files via upload --- ...oks for each new payment in Square_instructions.md | 10 ++++++++++ ...Books for each new Shopify product_instructions.md | 10 ++++++++++ ...h Gmail for each new Shopify order_instructions.md | 11 +++++++++++ ...h Slack for each new Shopify order_instructions.md | 11 +++++++++++ 4 files changed, 42 insertions(+) create mode 100644 resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md create mode 100644 resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md create mode 100644 resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md create mode 100644 resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md diff --git a/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md b/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md new file mode 100644 index 000000000..ee46cc21c --- /dev/null +++ b/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md @@ -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/master/resources/markdown/Create%20an%20expense%20in%20Zoho%20Books%20for%20each%20new%20payment%20in%20Square_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: + - [Square](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-square) + - [Zoho Books](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-zoho-books) + +3. To start the flow, in the banner click **Start flow**. + +Use this template to create an expense in Zoho Books for each new payment in Square. \ No newline at end of file diff --git a/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md b/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md new file mode 100644 index 000000000..a6b8fdeaa --- /dev/null +++ b/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md @@ -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/master/resources/markdown/Create%20an%20item%20in%20Zoho%20Books%20for%20each%20new%20Shopify%20product_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) + - [Zoho Books](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-zoho-books) + +3. To start the flow, in the banner click **Start flow**. + +Use this template to create an item in Zoho Books for each new Shopify product. \ No newline at end of file diff --git a/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md b/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md new file mode 100644 index 000000000..a56e92f94 --- /dev/null +++ b/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md @@ -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/master/resources/markdown/Create%20and%20send%20Zoho%20Books%20invoice%20through%20Gmail%20for%20each%20new%20Shopify%20order_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) + - [Zoho Books](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-zoho-books) + - [Gmail](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-gmail) + +3. To start the flow, in the banner click **Start flow**. + +Use this template to create and send a Zoho Books invoice through Gmail for each new Shopify order. \ No newline at end of file diff --git a/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md b/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md new file mode 100644 index 000000000..89ca7130f --- /dev/null +++ b/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md @@ -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/master/resources/markdown/Create%20and%20send%20a%20Zoho%20Books%20quote%20through%20Slack%20for%20each%20new%20Shopify%20order_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) + - [Zoho Books](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-zoho-books) + - [Slack](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-slack) + +3. To start the flow, in the banner click **Start flow**. + +Use this template to create and send a Zoho Books quote through Slack for each new Shopify order. \ No newline at end of file From e5552737f266086274976a70dba303ce18b123e5 Mon Sep 17 00:00:00 2001 From: Pkatiyar30 <102517223+Pkatiyar30@users.noreply.github.com> Date: Tue, 2 Jul 2024 07:11:14 +0000 Subject: [PATCH 03/12] Update template-metadata.json --- resources/template-metadata.json | 78 +++++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/resources/template-metadata.json b/resources/template-metadata.json index a103d4c14..cae91ae42 100644 --- a/resources/template-metadata.json +++ b/resources/template-metadata.json @@ -3526,6 +3526,80 @@ "targetApps": ["bamboohr", "apptiotargetprocess"], "tags": ["streaming-connector-scheduler", "bamboohr", "apptiotargetprocess"], "offerings": ["app connect professional"] - } + }, + { + "name": "Create an expense in Zoho Books for each new payment in Square", + "description": "Use this template to create an expense in Zoho Books for each new payment in Square", + "summary": "Scheduler to 2 applications", + "sourceApp": "streaming-connector-scheduler", + "targetApps": [ + "square", + "zohobooks" + ], + "tags": [ + "streaming-connector-scheduler", + "square", + "zohobooks" + ], + "offerings": [ + "app connect professional" + ] +}, +{ + "name": "Create an item in Zoho Books for each new Shopify product", + "description": "Use this template to create an item in Zoho Books for each new Shopify product", + "summary": "1 flow using 2 applications", + "sourceApp": "shopify", + "targetApps": [ + "zohobooks" + ], + "tags": [ + "shopify", + "zohobooks" + ], + "offerings": [ + "app connect professional" + ] +}, +{ + "name": "Create and send a Zoho Books invoice through Gmail for each new Shopify order", + "description": "Use this template to create and send a Zoho Books invoice through Gmail for each new Shopify order", + "summary": "Scheduler to 3 applications", + "sourceApp": "streaming-connector-scheduler", + "targetApps": [ + "shopify", + "zohobooks", + "gmail" + ], + "tags": [ + "streaming-connector-scheduler", + "shopify", + "zohobooks", + "gmail" + ], + "offerings": [ + "app connect professional" + ] +}, +{ + "name": "Create and send a Zoho Books quote through Slack for each new Shopify order", + "description": "Use this template to create and send a Zoho Books quote through Slack for each new Shopify order", + "summary": "Scheduler to 3 applications", + "sourceApp": "streaming-connector-scheduler", + "targetApps": [ + "shopify", + "zohobooks", + "slack" + ], + "tags": [ + "streaming-connector-scheduler", + "shopify", + "zohobooks", + "slack" + ], + "offerings": [ + "app connect professional" + ] +} ] -} \ No newline at end of file +} From dd2f14161dccf9c7bf1185a859ca712ed28f3e39 Mon Sep 17 00:00:00 2001 From: ireneapeter <158272585+ireneapeter@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:50:26 +0530 Subject: [PATCH 04/12] Update Create an expense in Zoho Books for each new payment in Square_instructions.md --- ... Zoho Books for each new payment in Square_instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md b/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md index ee46cc21c..d3cac1f29 100644 --- a/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md +++ b/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md @@ -1,4 +1,4 @@ -To refer to these instructions while editing the flow, open [the Github page](https://github.com/ot4i/app-connect-templates/blob/master/resources/markdown/Create%20an%20expense%20in%20Zoho%20Books%20for%20each%20new%20payment%20in%20Square_instructions.md) (opens in a new window). +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%20expense%20in%20Zoho%20Books%20for%20each%20new%20payment%20in%20Square_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: @@ -7,4 +7,4 @@ To refer to these instructions while editing the flow, open [the Github page](ht 3. To start the flow, in the banner click **Start flow**. -Use this template to create an expense in Zoho Books for each new payment in Square. \ No newline at end of file +Use this template to create an expense in Zoho Books for each new payment in Square. From 60a9cf8b5aa9c08ee850eec347c6a90ff808a7a1 Mon Sep 17 00:00:00 2001 From: ireneapeter <158272585+ireneapeter@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:56:02 +0530 Subject: [PATCH 05/12] Update Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md --- ...e through Gmail for each new Shopify order_instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md b/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md index a56e92f94..d0c7ee92e 100644 --- a/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md +++ b/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md @@ -1,4 +1,4 @@ -To refer to these instructions while editing the flow, open [the Github page](https://github.com/ot4i/app-connect-templates/blob/master/resources/markdown/Create%20and%20send%20Zoho%20Books%20invoice%20through%20Gmail%20for%20each%20new%20Shopify%20order_instructions.md) (opens in a new window). +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%20and%20send%20Zoho%20Books%20invoice%20through%20Gmail%20for%20each%20new%20Shopify%20order_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: @@ -8,4 +8,4 @@ To refer to these instructions while editing the flow, open [the Github page](ht 3. To start the flow, in the banner click **Start flow**. -Use this template to create and send a Zoho Books invoice through Gmail for each new Shopify order. \ No newline at end of file +Use this template to create and send a Zoho Books invoice through Gmail for each new Shopify order. From c3be8113dddac5e1446b086775f86736675a4aa5 Mon Sep 17 00:00:00 2001 From: ireneapeter <158272585+ireneapeter@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:56:30 +0530 Subject: [PATCH 06/12] Update Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md --- ...e through Slack for each new Shopify order_instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md b/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md index 89ca7130f..6ecd33254 100644 --- a/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md +++ b/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md @@ -1,4 +1,4 @@ -To refer to these instructions while editing the flow, open [the Github page](https://github.com/ot4i/app-connect-templates/blob/master/resources/markdown/Create%20and%20send%20a%20Zoho%20Books%20quote%20through%20Slack%20for%20each%20new%20Shopify%20order_instructions.md) (opens in a new window). +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%20and%20send%20a%20Zoho%20Books%20quote%20through%20Slack%20for%20each%20new%20Shopify%20order_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: @@ -8,4 +8,4 @@ To refer to these instructions while editing the flow, open [the Github page](ht 3. To start the flow, in the banner click **Start flow**. -Use this template to create and send a Zoho Books quote through Slack for each new Shopify order. \ No newline at end of file +Use this template to create and send a Zoho Books quote through Slack for each new Shopify order. From fc6b092b3ffcd0e4be6d7d634a5df9ca32646691 Mon Sep 17 00:00:00 2001 From: ireneapeter <158272585+ireneapeter@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:56:57 +0530 Subject: [PATCH 07/12] Update Create an item in Zoho Books for each new Shopify product_instructions.md --- ...in Zoho Books for each new Shopify product_instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md b/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md index a6b8fdeaa..0c63c4a88 100644 --- a/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md +++ b/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md @@ -1,4 +1,4 @@ -To refer to these instructions while editing the flow, open [the Github page](https://github.com/ot4i/app-connect-templates/blob/master/resources/markdown/Create%20an%20item%20in%20Zoho%20Books%20for%20each%20new%20Shopify%20product_instructions.md) (opens in a new window). +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%20item%20in%20Zoho%20Books%20for%20each%20new%20Shopify%20product_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: @@ -7,4 +7,4 @@ To refer to these instructions while editing the flow, open [the Github page](ht 3. To start the flow, in the banner click **Start flow**. -Use this template to create an item in Zoho Books for each new Shopify product. \ No newline at end of file +Use this template to create an item in Zoho Books for each new Shopify product. From 62bddb04d4ebfb47eea511a94dcdd4df4575398c Mon Sep 17 00:00:00 2001 From: ireneapeter <158272585+ireneapeter@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:44:02 +0530 Subject: [PATCH 08/12] Update Create an expense in Zoho Books for each new payment in Square_instructions.md --- ... Zoho Books for each new payment in Square_instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md b/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md index d3cac1f29..323f3ee89 100644 --- a/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md +++ b/resources/markdown/Create an expense in Zoho Books for each new payment in Square_instructions.md @@ -2,8 +2,8 @@ To refer to these instructions while editing the flow, open [the Github page](ht 1. Click **Use this template** to start using the template. 2. Connect to the following accounts by using your credentials: - - [Square](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-square) - - [Zoho Books](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-zoho-books) + - [Square](https://ibm.biz/acsquare) + - [Zoho Books](https://ibm.biz/aczohobooks) 3. To start the flow, in the banner click **Start flow**. From bee0743a37e61389d33343708e27bb2f9b2183bf Mon Sep 17 00:00:00 2001 From: ireneapeter <158272585+ireneapeter@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:45:06 +0530 Subject: [PATCH 09/12] Update Create an item in Zoho Books for each new Shopify product_instructions.md --- ...in Zoho Books for each new Shopify product_instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md b/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md index 0c63c4a88..992efc022 100644 --- a/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md +++ b/resources/markdown/Create an item in Zoho Books for each new Shopify product_instructions.md @@ -2,8 +2,8 @@ To refer to these instructions while editing the flow, open [the Github page](ht 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) - - [Zoho Books](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-zoho-books) + - [Shopify](https://ibm.biz/acshopify) + - [Zoho Books](https://ibm.biz/aczohobooks) 3. To start the flow, in the banner click **Start flow**. From 43f747feb017f2b447e273c9910d2465d141d6af Mon Sep 17 00:00:00 2001 From: ireneapeter <158272585+ireneapeter@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:46:15 +0530 Subject: [PATCH 10/12] Update Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md --- ...through Gmail for each new Shopify order_instructions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md b/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md index d0c7ee92e..d5763d142 100644 --- a/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md +++ b/resources/markdown/Create and send a Zoho Books invoice through Gmail for each new Shopify order_instructions.md @@ -2,9 +2,9 @@ To refer to these instructions while editing the flow, open [the Github page](ht 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) - - [Zoho Books](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-zoho-books) - - [Gmail](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-gmail) + - [Shopify](https://ibm.biz/acshopify) + - [Zoho Books](https://ibm.biz/aczohobooks) + - [Gmail](https://ibm.biz/acgmail) 3. To start the flow, in the banner click **Start flow**. From 6f4c10a211d333aae665a161c5443fed45ac7a35 Mon Sep 17 00:00:00 2001 From: ireneapeter <158272585+ireneapeter@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:47:08 +0530 Subject: [PATCH 11/12] Update Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md --- ...through Slack for each new Shopify order_instructions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md b/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md index 6ecd33254..4717f4b4b 100644 --- a/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md +++ b/resources/markdown/Create and send a Zoho Books quote through Slack for each new Shopify order_instructions.md @@ -2,9 +2,9 @@ To refer to these instructions while editing the flow, open [the Github page](ht 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) - - [Zoho Books](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-zoho-books) - - [Slack](https://www.ibm.com/docs/en/app-connect/containers_cd?topic=apps-slack) + - [Shopify](https://ibm.biz/acshopify) + - [Zoho Books](https://ibm.biz/aczohobooks) + - [Slack](https://ibm.biz/acslack) 3. To start the flow, in the banner click **Start flow**. From 7917841ea518baa87f3f4b4dfbca03266f005904 Mon Sep 17 00:00:00 2001 From: ireneapeter <158272585+ireneapeter@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:50:46 +0530 Subject: [PATCH 12/12] Update template-metadata.json --- resources/template-metadata.json | 59 +++++++------------------------- 1 file changed, 12 insertions(+), 47 deletions(-) diff --git a/resources/template-metadata.json b/resources/template-metadata.json index cae91ae42..18a8332a7 100644 --- a/resources/template-metadata.json +++ b/resources/template-metadata.json @@ -3532,17 +3532,9 @@ "description": "Use this template to create an expense in Zoho Books for each new payment in Square", "summary": "Scheduler to 2 applications", "sourceApp": "streaming-connector-scheduler", - "targetApps": [ - "square", - "zohobooks" - ], - "tags": [ - "streaming-connector-scheduler", - "square", - "zohobooks" - ], - "offerings": [ - "app connect professional" + "targetApps": ["square", "zohobooks"], + "tags": ["streaming-connector-scheduler", "square", "zohobooks"], + "offerings": ["app connect professional" ] }, { @@ -3550,35 +3542,18 @@ "description": "Use this template to create an item in Zoho Books for each new Shopify product", "summary": "1 flow using 2 applications", "sourceApp": "shopify", - "targetApps": [ - "zohobooks" - ], - "tags": [ - "shopify", - "zohobooks" - ], - "offerings": [ - "app connect professional" - ] + "targetApps": ["zohobooks"], + "tags": ["shopify", "zohobooks"], + "offerings": ["app connect professional"] }, { "name": "Create and send a Zoho Books invoice through Gmail for each new Shopify order", "description": "Use this template to create and send a Zoho Books invoice through Gmail for each new Shopify order", "summary": "Scheduler to 3 applications", "sourceApp": "streaming-connector-scheduler", - "targetApps": [ - "shopify", - "zohobooks", - "gmail" - ], - "tags": [ - "streaming-connector-scheduler", - "shopify", - "zohobooks", - "gmail" - ], - "offerings": [ - "app connect professional" + "targetApps": ["shopify", "zohobooks", "gmail"], + "tags": ["streaming-connector-scheduler", "shopify", "zohobooks", "gmail"], + "offerings": ["app connect professional" ] }, { @@ -3586,19 +3561,9 @@ "description": "Use this template to create and send a Zoho Books quote through Slack for each new Shopify order", "summary": "Scheduler to 3 applications", "sourceApp": "streaming-connector-scheduler", - "targetApps": [ - "shopify", - "zohobooks", - "slack" - ], - "tags": [ - "streaming-connector-scheduler", - "shopify", - "zohobooks", - "slack" - ], - "offerings": [ - "app connect professional" + "targetApps": ["shopify", "zohobooks", "slack"], + "tags": ["streaming-connector-scheduler", "shopify", "zohobooks", "slack"], + "offerings": ["app connect professional" ] } ]