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 :
Microsoft Dynamics NAV (Archived)

Vendor / Purchase Order

(0) ShareShare
ReportReport
Posted on by

I've created a button on the vendor page which should restrict who can release a purchase order. If the "Approved" button is pressed then the user should be able to release a purchase order, if not then it should error. In this code This should recognise of this button is pressed and either error or release. 

55.PNG

This is my code to see if the vendor has been accepted.

56.PNG

The problem is when the vendor has been accepted and I attempt to release it it is still producing the error and not the code after it (in the first picture). How can I ensure it's correctly checking? 

Thanks 

*This post is locked for comments

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

    I Need to alter the code in the second image to find the vendor, it's not finding anything currently

  • Verified answer
    Community Member Profile Picture
    on at

    try IF cuPurchMgmnt.VendorApproved(Buy-from Vendor No.) = FALSE (or pay to vendor) on the release code, if the get fail probably your strVendorCode might be empty...

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 > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans