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

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Vendor / Purchase Order

    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...

  • Community Member Profile Picture
    on at
    RE: Vendor / Purchase Order

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans