Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

loop through records method

(0) ShareShare
ReportReport
Posted on by 105

Hi,

I am new to ax and I am currently working on a project.

The request is in a run base batch class to see if a customer field is selected. If the field is not selected the logic should be implemented for all customers. If its selected the logic should be implemented just for that one customer.

The logic i should implement is : when OK is clicked on the dialog, this class should loop through all reservations in the selected time  frame, find all reservation lines that are not paid and update the relevant customer with the reservation id and amount that needs to be paid. How do I implement this?

  • André Arnaud de Calavon Profile Picture
    294,241 Super User 2025 Season 1 on at
    RE: loop through records method

    Hi sjov,

    Can you explain what exactly you mean with 'a customer field is selected'? What reservations and what time frame are you referring to? Is this related to inventory reservations or other functionality?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,241 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,982 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans