Looking for a traceability report on serial or batch numbers, which currently isn’t available in Exact Online, I tried something in PowerBI. The Exact Online REST API won’t give me the information I need, but the XML API for FinishedAssemblies
seems useful.
But, the Invantive PowerBI Connector doesn’t return all information available in the XML.
Can this be changed?
This is my XML export from Exact Online:
<?xml version="1.0" encoding="UTF-8"?>
<eExact xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="eExact-XML.xsd">
<FinishedAssemblies>
<FinishedAssembly assemblynumber="8" ordernumber="214">
<AssemblyDate>2020-11-08</AssemblyDate>
<Quantity>3</Quantity>
<SerialNumbers>
<SerialNumber SerialNumber="FP-04" Blocked="0">
<Parts>
<Part>
<Item ID="{xxx}" code="XXX_RM3">
<Description>XXX raw material 3</Description>
</Item>
<SerialNumbers>
<SerialNumber SerialNumber="RM3-04" Blocked="0" />
</SerialNumbers>
</Part>
<Part>
<Item ID="{xxx}" code="XXX_SF">
<Description>XXX semifinished product</Description>
</Item>
<SerialNumbers>
<SerialNumber SerialNumber="SF-04" Blocked="0" />
</SerialNumbers>
</Part>
</Parts>
</SerialNumber>
<SerialNumber SerialNumber="FP-03" Blocked="0">
<Parts>
<Part>
<Item ID="{xxx}" code="XXX_RM3">
<Description>XXX raw material 3</Description>
</Item>
<SerialNumbers>
<SerialNumber SerialNumber="RM3-03" Blocked="0" />
</SerialNumbers>
</Part>
<Part>
<Item ID="{xxx}" code="XXX_SF">
<Description>XXX semifinished product</Description>
</Item>
<SerialNumbers>
<SerialNumber SerialNumber="SF-03" Blocked="0" />
</SerialNumbers>
</Part>
</Parts>
</SerialNumber>
<SerialNumber SerialNumber="FP-02" Blocked="0">
<Parts>
<Part>
<Item ID="{xxx}" code="XXX_RM3">
<Description>XXX raw material 3</Description>
</Item>
<SerialNumbers>
<SerialNumber SerialNumber="RM3-02" Blocked="0" />
</SerialNumbers>
</Part>
<Part>
<Item ID="{xxx}" code="XXX_SF">
<Description>XXX semifinished product</Description>
</Item>
<SerialNumbers>
<SerialNumber SerialNumber="SF-02" Blocked="0" />
</SerialNumbers>
</Part>
</Parts>
</SerialNumber>
</SerialNumbers>
</FinishedAssembly>
</FinishedAssemblies>
</eExact>
The current Invantive PowerBI Connector doesn’t support the SerialNumbers node. Can it be changed to a set of records like this:
assemblynumber | ordernumber | AssemblyDate | Quantity | SerialNumberParent | code | SerialNumberChild | Blocked |
---|---|---|---|---|---|---|---|
8 | 214 | 2020-11-08 | 3 | FP-04 | XXX_RM3 | RM3-04 | 0 |
8 | 214 | 2020-11-08 | 3 | FP-04 | XXX_SF | SF-04 | 0 |
8 | 214 | 2020-11-08 | 3 | FP-03 | XXX_RM3 | RM3-03 | 0 |
8 | 214 | 2020-11-08 | 3 | FP-03 | XXX_SF | SF-03 | 0 |
8 | 214 | 2020-11-08 | 3 | FP-02 | XXX_RM3 | RM3-02 | 0 |
8 | 214 | 2020-11-08 | 3 | FP-02 | XXX_SF | SF-02 | 0 |