web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Web Service Array

(0) ShareShare
ReportReport
Posted on by

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.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    I suppose I'm asking if a .net array within AX can be Dynamics.

  • Suggested answer
    Martin Dráb Profile Picture
    239,069 Most Valuable Professional on at

    Arrays in .NET have a fixed size. If you want something dynamic, use a collection class such as List.

    Unfortunately you didn't provide any context of your question (e.g. whether you're forced to used an array for some reason). Please give us more information if you need a further assistance.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans