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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Setting Fields in Sales Line as mandatory

(0) ShareShare
ReportReport
Posted on by 1,606

Hi,

                     How can I make 'Warehouse' field in Sales Order mandatory? Any Ideas?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Warehouse is part of InventDim ID and is available in InventDim Table as InventLocationId

    to make this field as mandatory on Sales order is by updating InventLocationId as mandatory field in InventDimGroup. If you do this then Warehouse will get mandatory in all place wherever it is found (like Purchase Order, Inventory Journals or Sales Order...)

    If your requirement is to have it mandatory at SalesOrder form level then you need to modify the datasource

    In SalesOrder form Datasource you will find InventDim table

    in inventDim there is InventLocationId field, set this field property (mandatory) as 'YES'

    Please verify and update if this information helps you.

  • blue_dreamer61@yahoo.com Profile Picture
    1,606 on at

    I wanted to require the "Warehouse" filed in the Sales Order level. I already tried setting the InventLocationId, mandatory=yes. But it did not work.

    But the site is required, it prompts "Site must be filled in". I wanted to be like that too.

    Btw what is "InventDimGroup" a form? a table?

  • André Arnaud de Calavon Profile Picture
    303,728 Super User 2026 Season 1 on at

    Hi Wenchester,

    On which exaclty control did you set the InventLocationId mandatory? Was it on the form or the table SalesTable? I would recomment to do this on the field within the table itself.

  • Verified answer
    Community Member Profile Picture
    on at

    Ok, if it is required at header level then SalesTable itself having InventLocationId field

    so if you need this mandatory feature in all forms using SalesTable as datasource, and warehouse field to be mandatory, then you can set the inventLocationId field mandatory at table level only

    I just did it and now I can see the warehouse field mandatory on both SalesTable form and SalesTableCreate form.

    In your case if you need it on specific for then you should set the mandatory property at for datasource level.

    Please verify and update if this information helps you.

  • Verified answer
    blue_dreamer61@yahoo.com Profile Picture
    1,606 on at

    I set the property as mandatory before posting this. It did not just take effect on the lines which are already created.

  • Community Member Profile Picture
    on at

    I actually like the solution with both the Header and Lines. Do you happen to have the details (step by step) type in AOS-->Dimensions...?

    Thanks

  • Community Member Profile Picture
    on at

    I think mine works! Will post detailed instructions soon. In this process, just to make sure in case you have other fields mandatory as well, I'll create not only Warehouse, but also Site and Sales Unit. Hope this will be helpful.

    Thanks

    TL

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans