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 :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Add reason code and sub reason code in D365 warehouse management mobile app

(5) ShareShare
ReportReport
Posted on by 434
Hi All,
 
While receiving products from load item receiving menu item 
 
I need to add 2 combobox i.e customisation and on the selection of reason in the combobox, associated reason code to be populated in the sub reason combobox in d365 warehouse mobile device app.
Reason 
Sub reason 
 
Reason 
Damage
 
Sub reason 
Side Damage 
Front Damage
Broken product 
 
 
Reason 
packaging issue 
 
Sub Reason 
No packing done  by supplier 
Packing not proper by supplier
Package damaged while unloading 
 
 
I am not able to find the event to trigger the lookup value of first drop-down to populate value in another sub reason combobox.
 
Please help.
 
 
 
 
 
 
 
 
I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    Hi Rakesh,

    To implement dependent dropdowns (Reason → Sub Reason) in the D365 Warehouse Management mobile app, you'll need to customize the Mobile Device Menu Items and extend the logic using X++ or Warehouse Mobile Device Portal (WMDP) if you're using an older version.

    Here’s a general approach:

    1. Create Custom Fields: Add two custom fields (Reason and Sub Reason) to the mobile form using the WHSMobileAppFormExtension.

    2. Use Form Control Events: In your extension, override the modified event on the Reason field to trigger a lookup or filter for the Sub Reason field.

    3. Populate Sub Reason: Based on the selected Reason, filter the Sub Reason values using a lookup method or a query that maps the relationship.

    4. Use a Mapping Table: Create a table that stores Reason → Sub Reason mappings. This makes it easier to maintain and extend.

    5. Deploy and Test: Ensure the mobile app reflects the changes and test the dropdown behavior during load item receiving.

    Let me know if you'd like help with sample code or setting up the mapping table!

    Best regards,
    Daniele

  • rajeev tiwari Profile Picture
    434 on at
    Hi Daniele,
     
    I have attached the image of the dropdown and on selection of the value , i need to enable/disable the qty field and populate some additional data on other fields. 
    Not able to find the events where to write the code , it will be great,if you can help me with some sample code .
  • André Arnaud de Calavon Profile Picture
    300,777 Super User 2025 Season 2 on at
    Hi Rajeev,
     
    Unfortunately, the reply from Danny3211 seems to be drafted using AI where AI is providing incorrect information. The object WHSMobileAppFormExtension does not exists. You can try to copy or extend the current class used for this process. Using the modified event to open a lookup is not common practice.
     
    Do you already have a data model where you can set up the reasons and their related sub reasons? 

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 > Supply chain | Supply Chain Management, Commerce

#1
Siv Sagar Profile Picture

Siv Sagar 303 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 91 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans