April 15, 2016

OTM Outbound Integrations

OTM system can generate outbound XML data for any business object like 'Order Release', 'Shipment' etc either manually(using Send Interface Transmission action) or programmatically using same action from OTM Agent(workflow). We will discuss about OTM Agents in further posts.

For generating outbound XMLs from OTM you may follow below steps:

1. Define an Out XML profile.  

Business Process Automation > Power Data > Integration > Out XML Profiles.

Standard OTM XML for any object might have lot of data that might not be necessary or relevant to send it to the external systems. Also the file size for a complete XML would be in MB( for example Shipment XML might be 2 MB). In order to avoid generation of huge files and to control what data we generate in outbound XML we need to define an Out XML profile.


Select 'MIN' as Default Mode and specify the Xpath as shown above. This will ensure XML is limited to data that is within those Xpaths. 

2. Define an External system and link the XML profile. 
Once you have the Out XML profile ready, you can go ahead and define External System:
Business Process Automation > Communication Management > External Systems



Note that external system definition will have these critical details:
  • External system ID 
  • User Name/Password that can be sent to external application for authentication
  • HTTPS URL or Webservice to which this XML should be sent
  • Out XML Profile ID that was created in first step
3. We can invoke this external system for any object with below steps:

In this example, we can invoke external system to generate a shipment XML as below:

Shipment > Actions > Utilities > Send Interface Transmission


Select the external system that was defined earlier and select notification type(HTTP/Service based on your external system definition).

4. You can verify the XML generated as below:
Business Process Automation > Integration > Transmission Manager > Transactions Tab > Enter Object GID for 'Object' (Same AS) and Search.

You will see Transmission Result page and 'Raw XML' option will show the generated XML.   

Note: Please post corrections(if any) to 'learnotm@outlook.com' 
 

2 comments:

  1. How to set the "included path" on out XML profile. ?
    Assuming i want to set it for "shipment"

    ReplyDelete