Skip to main content

Notifications

Announcements

No record found.

Business Central forum

Auto create Assembly order

(0) ShareShare
ReportReport
Posted on by 405

Hello Team,

Item is setup "Assembly Policy" as "Assemble-to-order".When i enter an item on Sales order and enter qty, system creates Assembly Order(automatically).

But when i insert data on Sales Line through code.System does not creates Assembly Order(automatically). I am using the same item.

Please suggest.

Categories:
  • Manish Ratan Profile Picture
    Manish Ratan 405 on at
    RE: Auto create Assembly order

    Used AutoAsmToOrder, hard luck. Have debugged the same and have found that it is actually hitting the given function. But system is not creating Assembly order.

  • ManishS Profile Picture
    ManishS 78 on at
    RE: Auto create Assembly order

    Can you show your code.

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,864 Super User 2024 Season 1 on at
    RE: Auto create Assembly order

    You may need to debug and see what is happening. when you validate that field, it should call a function called AutoAsmToOrder and create the Assembly Order for you. there may be something that prevent it from calling it.

    or maybe you can call the function manually.

  • Manish Ratan Profile Picture
    Manish Ratan 405 on at
    RE: Auto create Assembly order

    Yes, i tried this. But no success.

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,864 Super User 2024 Season 1 on at
    RE: Auto create Assembly order

    Did you fill in and validate "Qty. to Assemble to Order" ?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans