Skip to main content
Microsoft Dynamics GP forum
Unanswered

How to go through a list in Dynamics GP

editSubscribe (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.

  • MarcosAP25 Profile Picture
    MarcosAP25 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.

  • 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.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,068 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,591 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans