Skip to main content

Notifications

Announcements

No record found.

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
    André Arnaud de Cal... 292,494 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans