Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Set default value for a field

(0) ShareShare
ReportReport
Posted on by

hi guys
When I create a purchase order, I usually forget to put the warehouse, is there any way that when I put the site, the warehouse is automatically put to me or that the warehouse fills itself? (we only have a warehouse)

  • Verified answer
    Rachit Profile Picture
    4,015 User Group Leader on at
    RE: Set default value for a field

    You can check the below blog. Basically if you want to default using system configuration then the setup is required. 

    www.alithya.com/.../default-and-site-specific-order-settings-in-microsoft-dynamics-ax-2012

    Another way is to customise,  if you do not want to setup on every product and vendor.

    As you mentioned you have only one warehouse,  a simple customisation option would be to add a default warehouse field on a parameter table and use that to default value when creating a new order. Please check with your architects or developers in the team. Hope this helps.

  • Verified answer
    Dolores Young Profile Picture
    on at
    RE: Set default value for a field

    Hello Pablo,

    On the vendor, there are fields called Site and Warehouse. These will default to a purchase order for that vendor.

    I don't have AX2012 system, but if you go to released products (or products), there should be a menu item called Default order settings. Here you can specify a default or a mandatory warehouse for a site.

    I hope that helps

    Regards

    Dolores

  • Community Member Profile Picture
    on at
    RE: Set default value for a field

    Hi Dolores

    Im so sorry but im new in this program, could you say me how to do it step by step please?

    Have a nice day

    Pablo

  • Dolores Young Profile Picture
    on at
    RE: Set default value for a field

    Hello PMuni,

    You could set the warehouse on the vendor.

    Or if you set up default order settings on the product, you can set a default or mandatory warehouse per site,

    Hope this helps

    Dolores

  • Community Member Profile Picture
    on at
    RE: Set default value for a field

    We can´t do it without touching the code?

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Set default value for a field

    Generally you can handle these requirements by writing code in modifiedField method of the underlying table.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,075 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,860 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans