I'm building some integration between AX 2012 and a third party RFID scanning software.
I'm building customer data and then sending it off via a web service.
Currently i have to count the total number of records that will be sent via the web service to enable me to create an array to hold said customer data.
Is it possible to initiate a new Array with a '0' / blank indexing? I'm leaving the array indexing blank at declaration;
TestIntegration.TestData.MyService[]
but i have to count my table records like;
select (recid) from CustTable
TotalCustomers = custTable.RecId
and then set my array like this;
newArray = TestIntegration.TestData.MySevice[totalCustomers]
Otherwise it bombs out and issues and error.
Is possible to set my indexing as and when i put records in the array, like a Dynamic array within AX?
Thanks in advance.