Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Buyer ID Auto Populate

(0) ShareShare
ReportReport
Posted on by

We have a request to auto populate the Buyer ID in Purchase Order Maintenance with the cooresponding User ID for the login ID of the person doing the work.

All users that have access to GP are not BUYERS but all BUYERS in GP have to be Users in GP is the only real rule I know of - and the BUYER ID field allows you to populate BUYERS based on the User ID list in the system.

I am not a coder, but I think this pretty simple.  Any suggestions?

Categories:
  • Suggested answer
    Jothi Krishnan N Profile Picture
    Jothi Krishnan N 1,869 on at
    RE: Buyer ID Auto Populate

    Bill,

    First add the window to VB and add then add the field Buyer ID to VB. When you use the menu "Add field to Visual Basic", cursor will change and just click on Buyer iD field. Once added, again go to the menu and click the same to change the cursor back to normal. Then go to the VB editor and add the below code to the window you added. if you dont want user to modify you can also disable the field. Just uncomment the line below.

    Private Sub Window_AfterOpen()

       BuyerID = UserInfoGet.UserID

       'BuyerID.Enabled = False

    End Sub

  • RE: Buyer ID Auto Populate

    Hi Bill,

    From a support standpoint we don't support creating custom code.  Let's see if the community can help you with your question.  

    Thanks,

    Angela

    Microsoft Dynamics GP support

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,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans