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 :
Finance | Project Operations, Human Resources, ...
Answered

Warning in Purchase Requisition form

(1) ShareShare
ReportReport
Posted on by 131
Hi all
 
When I create "Purchase requisition lines"  if I delete the content of the unit field, I get the error " Field  'unit ' must be filled in.".
I want to add a new validation: "Field 'Vend Account' must be filled in." and add Reason mandatory validation in the purchase requisition header [ (PurchReqTable).BusinessJustification], I didn't find the code to validate if it's empty, where should I add the validation code?
 
Thanks 
B.R
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at
    This doesn't require code - if you make a field mandatory, the system will validate whether a value has been filled in.
     
    Note that if you make an existing field mandatory, it'll make all existing records without a value invalid and users won't be able to update such records (without setting the field value). You should fix the existing records before you let users use the system.
  • Danzel Zuo Profile Picture
    131 on at
    Thanks Martin,
    Addendum: only the string type can be controlled in this way
  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at
    No, it's not true. It applies to other data types too.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans