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 :
Finance | Project Operations, Human Resources, ...
Unanswered

How to go through a list in Dynamics GP

(0) ShareShare
ReportReport
Posted on by 75

Hi!

I'm trying to get all elements of a list, but in dexterity don't exist any methods for that, for example a foreach.

I want to know if there is anything similar to be able to achieve this result.

Categories:
I have the same question (0)
  • Justin Sutton Profile Picture
    Microsoft Employee on at

    Hello Marcos,

    Are you looking to grab the values and then do something with each one, or are you looking to just get all of them?

    For example, are you looking to get the list, and do something with A, do the same thing with B, and so on and so forth?

    More information on what you are looking for will help get you the best answer.

  • MarcosAP25 Profile Picture
    75 on at

    Yes, I'm trying to do that.

    I want to get each of those values and then add them to a table.

    I managed to do this by creating a method in my library that would return an object with these values to me, but I feel that it is not practical, so if there is a better way, I would appreciate your help.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 583 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 378

#3
Diego Mancassola Profile Picture

Diego Mancassola 255

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans