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 119
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
  • Martin Dráb Profile Picture
    Martin Dráb 231,436 Most Valuable Professional on at
    Warning in Purchase Requisition form
    No, it's not true. It applies to other data types too.
  • Danzel Zuo Profile Picture
    Danzel Zuo 119 on at
    Warning in Purchase Requisition form
    Thanks Martin,
    Addendum: only the string type can be controlled in this way
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 231,436 Most Valuable Professional on at
    Warning in Purchase Requisition form
    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans