From d9b0ec29013278eb9710866f3dac897cdf206a9a Mon Sep 17 00:00:00 2001 From: Deepak Ayilliath <87267785+Deepak-Ayilliath@users.noreply.github.com> Date: Mon, 11 Sep 2023 19:37:38 +0530 Subject: [PATCH] Oracle EBS to MS Dynamics 365 for Sales (#361) * Oracle EBS to MS Dynamics 365 for Sales * Corrections --- ...is received in Microsoft Dynamics 365.yaml | 123 ++++++++++++++++++ ... in Microsoft Dynamics 365_instructions.md | 9 ++ resources/template-metadata.json | 15 ++- 3 files changed, 144 insertions(+), 3 deletions(-) create mode 100644 resources/Create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365.yaml create mode 100644 resources/markdown/Create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365_instructions.md diff --git a/resources/Create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365.yaml b/resources/Create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365.yaml new file mode 100644 index 000000000..637d30c4f --- /dev/null +++ b/resources/Create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365.yaml @@ -0,0 +1,123 @@ +$integration: http://ibm.com/appconnect/integration/v2/integrationFile +integration: + type: trigger-action + trigger-interfaces: + trigger-interface-1: + connector-type: msdynamicscrmrest + type: event-trigger + triggers: + CREATED_POLLER: + input-context: + data: SalesOrder + assembly: + $ref: '#/integration/assemblies/assembly-1' + options: + subscription: + createdField: createdon + updatedField: modifiedon + timeFormat: YYYY-MM-DDTHH:mm:ssZ + timeZone: UTC + pollingInterval: '5' + isCreatedQueryable: true + action-interfaces: + action-interface-1: + type: api-action + business-object: OE_INBOUND_INT_Service___PROCESS_ORDER + connector-type: oracleebs + actions: + CREATE_ORDER: {} + assemblies: + assembly-1: + assembly: + execute: + - if: + name: If + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + branch: + - condition: + '{{$Trigger.shipto_stateorprovince}}': not empty + execute: + - custom-action: + name: Oracle E-Business Suite Create order + target: + $ref: '#/integration/action-interfaces/action-interface-1' + action: CREATE_ORDER + map: + mappings: + - P_HEADER_REC: + mappings: + - CREATION_DATE: + template: '{{$Trigger.datefulfilled}}' + - FREIGHT_TERMS_CODE: + template: '{{$Trigger.shipto_freighttermscode}}' + - ORDER_TYPE_ID: + template: '{{$Trigger.ordernumber}}' + - PRICE_LIST_ID: + template: '{{$Trigger.pricelevelid}}' + - SHIP_TO_ADDRESS_ID: + template: '{{$Trigger.shipto_addressid}}' + - SHIP_TO_ADDRESS_REF: + template: '{{$Trigger.shipto_composite}}' + - P_HEADER_VAL_REC: + mappings: + - DELIVER_TO_ZIP: + template: '{{$Trigger.shipto_postalcode}}' + - PRICE_LIST: + template: '{{$Trigger.skippricecalculation}}' + - SHIP_FROM_POSTAL_CODE: + template: '{{$Trigger.shipto_postalcode}}' + - SHIP_TO_ADDRESS3: + template: '{{$Trigger.shipto_line3}}' + - SHIP_TO_CITY: + template: '{{$Trigger.shipto_city}}' + - SHIP_TO_CONTACT_FIRST_NAME: + template: '{{$Trigger.shipto_contactname}}' + - SHIP_TO_COUNTRY: + template: '{{$Trigger.shipto_country}}' + - SOLD_TO_LOCATION_STATE: + template: '{{$Trigger.shipto_stateorprovince}}' + - SOAHeader: + mappings: + - NLSLanguage: + template: US + - OrgId: + template: '{{$Trigger.ordernumber}}' + - RespApplication: + template: '{{$Trigger.processid}}' + - Responsibility: + template: '{{$Trigger.ordernumber}}' + - SecurityGroup: + template: '{{$Trigger.owningteam}}' + $map: http://ibm.com/appconnect/map/v1 + input: + - variable: flowDetails + $ref: '#/flowDetails' + completion-action: + terminate: + info: + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + message: Send order + status-code: 200 + else: + execute: [] + completion-action: + terminate: + info: + input: + - variable: Trigger + $ref: '#/trigger/payload' + - variable: flowDetails + $ref: '#/flowDetails' + message: Order needs manual review. + status-code: 200 + output-schema: {} + name: Create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365 +models: {} diff --git a/resources/markdown/Create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365_instructions.md b/resources/markdown/Create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365_instructions.md new file mode 100644 index 000000000..ec44b5ac9 --- /dev/null +++ b/resources/markdown/Create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365_instructions.md @@ -0,0 +1,9 @@ +To refer to these instructions while editing the flow, open [the GitHub page](https://github.com/ot4i/app-connect-templates/tree/master/resources/markdown/Create%20an%20order%20in%20Oracle%20E-Business%20Suite%20when%20a%20new%20order%20is%20received%20in%20Microsoft%20Dynamics%20365_instructions.md) (opens in a new window). + +1. Click **Create flow** to start using the template. +2. Connect to the following accounts by using your credentials: + - [Microsoft Dynamics 365 for Sales](https://www.ibm.com/docs/en/app-connect/saas?topic=apps-microsoft-dynamics-365-sales) + - [Oracle E-Business Suite](https://www.ibm.com/docs/en/app-connect/saas?topic=apps-oracle-e-business-suite) +3. To start the flow, in the banner, click **Start flow**. + +Use this template to create an order in Oracle E-Business Suite whenever a new order is received in Microsoft Dynamics 365 for Sales. \ No newline at end of file diff --git a/resources/template-metadata.json b/resources/template-metadata.json index b5dc02b6d..9cf0608b7 100644 --- a/resources/template-metadata.json +++ b/resources/template-metadata.json @@ -1951,8 +1951,8 @@ "targetApps": ["shopify", "square"], "tags": ["api", "shopify", "square"], "offerings": ["app connect professional"] - }, - { + }, + { "name": "Create a contact in HubSpot CRM when a contact is created in Salesforce and then associate the contact with a company", "description": "Use this template to create a contact in HubSpot CRM with the contact details whenever a contact is created in Salesforce. If the Salesforce contact has the company’s details, then the company will be associated with the contact in HubSpot CRM.", "summary": "Salesforce to 2 applications", @@ -1960,6 +1960,15 @@ "targetApps": ["hubspotcrm", "salesforce"], "tags": ["salesforce", "hubspotcrm", "if"], "offerings": ["app connect professional"] - } + }, + { + "name": "Create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365", + "description": "Use this template to create an order in Oracle E-Business Suite when a new order is received in Microsoft Dynamics 365 for Sales.", + "summary": "Microsoft Dynamics 365 for Sales to Oracle E-Business Suite", + "sourceApp": "msdynamicscrmrest", + "targetApps": ["msdynamicscrmrest", "oracleebs"], + "tags": ["msdynamicscrmrest", "oracleebs"], + "offerings": ["app connect professional"] + } ] }