web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    on at
    RE: How to go through a list in Dynamics GP

    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
    RE: How to go through a list in Dynamics GP

    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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 783

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 715 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 519 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans