web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Auto reserve an InventTrans

(1) ShareShare
ReportReport
Posted on by 362

Hi all,

this is my scenario.

I have a salesline with qtyordered = 2, that was automatically reserved by the system (1 piece with batchid 0001 and 1 piece with batchid 0002).

 i remove manually the reservation for the piece with batchid 0001 and assigned to another order, so it is not available right now.

Through code, i need to reserve ONLY the inventTrans related to batch 0001 considering that now i have availability in batchid 0003 and batch 0004 and the code must follow all the standard logic like a salesline creation. The only difference is that the auto reservation has to reserve only an inventTrans and not all the inventtransid.

Thanks

Nino

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Nino,

    I'm a bit lost here. What is the exact business requirement? You are talking about both reservations and a sales order creation. I would like to understand what exact requirement you are trying to fulfill.

    Can you also tell where exactly you need help? Did you do some coding yourself already? Is the outcome incorrect or do you have errors?

  • nino232323 Profile Picture
    362 on at

    Hi Andrè, sorry for the delay with my answer.

    The requirement is to replicate the auto reservation done by the system when a new sales line is created. The only difference is that I need to reserve only a part of inventTransId (an invent trans).

    I'm trying to use the InventUpd_Estimated class, but it works only with all the inventTransId.

    Thanks.

    Nino

  • André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Nino,

    Are you creating an auto reservation for another document type then sales orders or are you adjusting the existing logic of auto reservation on sales lines?

  • nino232323 Profile Picture
    362 on at

    Hi Andrè,

    I'm creating an auto reservation for an invent trans related to a sales line (not all the salesLine but a piece).

    Thanks

    Nino

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,035 Super User 2025 Season 2 on at

    Hi Nino,

    I have no suggestions here. I never had the requirement to change the standard behavior of reservations. You can try to use the debugger and see what standard logic is triggered when you change the reservation manually. Then you might get an idea where to hook in.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans