You are on page 1of 4

How Integration Workflow works?

Diagram

Description
– It reads all sequenced workflows for the called interface (Source interface in the Workflow)
– Starts from workflow 1 onwards, evaluate its rule condition, if true, do integration for its target
interface. If Check-Next, do the next workflow. This process continues until no Check Next.

How To Create Integration Workflow?


Below is a sample case to create and test Integration using Workflow

Test Case
User wants to transfer data both Account and Contact at the same time onto Salesforce in both
Account and Contact object.
Prerequisite
– sample data

For the test case, we use the following sample data (one Account and two contacts)
The first row/record is Account data and the other two are related Contact data.

<?xml version="1.0" encoding="UTF-8"?>


<result>
<row>
<field name="KUNNR">0000009999</field>
<field name="PARNR"></field> If “PARNR” empty, it is Account
<field name="NAME1">Test1</field>

<field name="STRAS">STRAS Test</field>

<field name="ORT01">ORT01_Test</field>

<field name="REGIO">02</field>

<field name="PSTLZ">999999</field>

<field name="LAND1">DE</field>

<field name="TELF1">040-999-0</field>

<field name="TELFX">040-999-999</field>

<field name="UWAER">EUR</field>

<field name="NAMEV"></field>

<field name="ANRED"></field>

<field name="TITEL_AP"></field>

<field name="ABTNR"></field>

<field name="GBDAT">20090824</field>

</row>

<row>

<field name="KUNNR">0000009999</field>

<field name="PARNR">0000001111</field> If “PARNR” not empty, it is contact


<field name="NAME1">Test1</field>

<field name="STRAS"></field>

<field name="ORT01"></field>

<field name="REGIO"></field>

<field name="PSTLZ"></field>

<field name="LAND1"></field>

<field name="TELF1">040-999-0</field>

<field name="TELFX"></field>
<field name="UWAER">EUR</field>

<field name="NAMEV">NameV Test1</field>

<field name="ANRED">Hrr</field>

<field name="TITEL_AP"></field>

<field name="ABTNR">0005</field>

<field name="GBDAT">20090824</field>

</row>

<row> <field name="KUNNR">0000009999</field>

<field name="PARNR">0000002222</field> If “PARNR” not empty, it is contact


<field name="NAME1">Test1</field>

<field name="STRAS"></field>

<field name="ORT01"></field>

<field name="REGIO"></field>

<field name="PSTLZ"></field>

<field name="LAND1"></field>

<field name="TELF1">040-999-0</field>

<field name="TELFX"></field>

<field name="UWAER">EUR</field>

<field name="NAMEV">NameV Test2</field>

<field name="ANRED">Hrr</field>

<field name="TITEL_AP"></field>

<field name="ABTNR">0005</field>

<field name="GBDAT">20090824</field>

</row>

</result>

Save the above sample data into a file titled “Account_Header_and_Item.xml”.

– Salesforce Objects
For the test case, on Salesforce, the following custom fields have been defined:
One validation rule on Contact object is defined:

Note: for each object, it is required to have an External Id field, to be used for synchronization with
external system. This external id field must be unique, to avoid duplicate records on each object.

Implementation

1- Be aware of Mapping sheet


Assume that the following mapping sheets are used for the test case:
Account mapping sheet:

Contact mapping sheet:

You might also like