I took the XOG approach for exporting the rate matrix using the code below.
<?xml version="1.0" encoding="UTF-8"?>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
<Header version="7.5" action="read" objectType="matrix" externalSource="NIKU"/>
<Query>
<!-- <Filter name="name" criteria="EQUALS">NIKU_XOG</Filter> -->
<!-- <Filter name="type" criteria="EQUALS">Administrative</Filter>
<Filter name="name" criteria="EQUALS">aa</Filter>
<Filter name="location" criteria="EQUALS">London</Filter>-->
</Query>
</NikuDataBus>
I then built a workbook where I copied+pasted the XML results to (Cell A1 below). The purpose is to extract the results and make available in a table format.
The formulas I used for extracting the XML results to table is listed below. Formulas start in cell C10, since rows 1-9 is just header info.
- Resource ID: =IF(LEFT($A10,10)="<matrixRow",mid($A10,find("resource=",$A10,1)+10,find("standardCost=",$A10,1)-(find("resource=",$A10,1)+12)),"")
- Actual Cost: =IF(LEFT($A10,10)="<matrixRow",mid($A10,find("actualCost=",$A10,1)+12,find("currencyCode=",$A10,1)-(find("actualCost=",$A10,1)+14)),"")
- From Date: =IF(LEFT($A10,10)="<matrixRow",date(mid($A10,find("fromDate=",$A10,1)+10,4),mid($A10,find("fromDate=",$A10,1)+15,2),mid($A10,find("fromDate=",$A10,1)+18,2)),"")
- To Date: =IF(LEFT($A10,10)="<matrixRow",date(mid($A10,find("toDate=",$A10,1)+8,4),mid($A10,find("toDate=",$A10,1)+13,2),mid($A10,find("toDate=",$A10,1)+16,2)),"")
Once the results are in table format, I can use it for reconciling what I have in CA PPM to my other data sources.
I recognize this is a really ugly solution. So if anyone has a better approach in how to extract Rates to table format, by all means, please share.