Hello,
I am using Map input document to API request to form the Request Body of an API Connection point call. I am trying to include all lines from a PO. The issue is <IonApiRef> with XPath for the lines only pulls in the first line. How do form an IonApiRef path that will include all lines?
Example custom BOD with many section snipped out:
<SyncSAPPurchaseOrder >
<ApplicationArea>
<SnippedText/>
</ApplicationArea>
<DataArea>
<Sync>
<SnippedText/>
</Sync>
<SAPPurchaseOrder>
<HEADER>
<POID>23000313</POID>
<SnippedText/>
</HEADER>
<ITEM>
<PO_LINE>1</PO_LINE>
<SnippedText/>
</ITEM>
<ITEM>
<PO_LINE>2</PO_LINE>
<SnippedText/>
</ITEM>
<ITEM>
<PO_LINE>3</PO_LINE>
<SnippedText/>
</ITEM>
<ITEM>
<PO_LINE>4</PO_LINE>
<SnippedText/>
</ITEM>
</SAPPurchaseOrder>
</DataArea>
</SyncSAPPurchaseOrder>
This is my Request Body:
<ns0:MT_FLNA_PurchaseOrder xmlns:ns0="">company:flna:PTP:WCMS:PurchaseOrderIn"
xmlns:xs="
">www.w3.org/.../XMLSchema"><IonApiRef>SyncSAPPurchaseOrder/DataArea/SAPPurchaseOrder/HEADER</IonApiRef>
<IonApiRef>SyncSAPPurchaseOrder/DataArea/SAPPurchaseOrder/ITEM</IonApiRef>
</ns0:MT_FLNA_PurchaseOrder>
This is what gets formed:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<HEADER>
<POID>23000313</POID>
<SnippedText/>
</HEADER>
<ITEM>
<PO_LINE>1</PO_LINE>
<SnippedText/>
</ITEM>
</ns0:MT_FLNA_PurchaseOrder>
Please note the API payload includes only the first <ITEM> node and not the remaining nodes.
Using an XPath testing tool return all <ITEM> nodes for the XPath contained within the <IonApiRef> node in the Rewquest Body.
Any input appreciated!
Thank you,
James Crow