Hello Team,
I need assistance with creating Movement Work by Template in Dynamics 365 FO (WMS) using X++. My goal is to:
- Use a predefined work template to generate work for inventory movement.
- Ensure that location directives are applied to determine pick and put locations.
- Trigger work creation through code instead of manual processing.
I understand that WhsWorkCreate can be used, but I need a working X++ example that correctly initializes and creates work using a specific work template code.
Has anyone implemented this before or can provide sample code? Any insights on prerequisites (e.g., work templates, location directives) and best practices would also be appreciated.
Thanks in advance for your help!