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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Automation ArrayList in NAV 2013 R2

(0) ShareShare
ReportReport
Posted on by 1,144

Dear all,

I'm using a Automation (C#) in NAV 2013 Environment. I want that C/AL can read the data stored in the dll ArrayList. How can I able to read ?

What is the procedure ?

Please reply.

Thanks!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    The requirement is not clear can you please provide more details. Are you trying to use .net interop arraylist ? why are using it instead of standard array in c/al ?

  • subrata.bauri Profile Picture
    1,144 on at

    Actually I want to access the ArrayList from the COM.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    use .net interop to create arraylist variable and assign the arraylist to that and read it from there.

  • subrata.bauri Profile Picture
    1,144 on at

    I'm able to access other Functions/Methods from that dll(automation) but couldn't get the value from ArrayList.

    Please elaborate your reply if possible.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Please send the piece of your code which you have written and which is not working

    Look at this blog how to access .net interop collection types

    http://dynamicsuser.net/blogs/waldo/archive/2011/03/21/nav-2009-r2-net-interop-using-arrays-collections.aspx

  • subrata.bauri Profile Picture
    1,144 on at

    The MyAutomation Variable has a method called FunArrayList which is providing the ArrayList, but I'm not able t0 read this in C/AL.

    In C# we are handling the same case in the following way:

    ArrayList Variablelist = new ArrayList();

    Variablelist =DllIntance.FunArrayList(Para)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans