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

Notifications

Announcements

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)

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

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

  • Community Member Profile Picture
    on at

    We can´t do it without touching the code?

  • Dolores Young Profile Picture
    on at

    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

    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

  • Verified answer
    Dolores Young Profile Picture
    on at

    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

  • Verified answer
    Rachit Profile Picture
    4,015 User Group Leader on at

    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.

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

News and Announcements

Season of Giving Solutions is Here!

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
Abhilash Warrier Profile Picture

Abhilash Warrier 732 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 289 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans