Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

How to restrict a user to only Shipment/Invoice PO Receipts?

(0) ShareShare
ReportReport
Posted on by 350

Any ideas or work-arounds on how to restrict a user to only Shipment/Invoice PO receiving transactions?  I modified the window with VBA code to default the receipt type to Shipment/Invoice and lock-down the field.  However, the user is still able to access/change Shipment receipts entered by other users.  I considered Field Level Security but that has the same result.  I looked at restricting document access via a security task but you can only restrict access to PO types, not receipt types.

*This post is locked for comments

  • Ian Grieve Profile Picture
    22,784 on at
    RE: How to restrict a user to only Shipment/Invoice PO Receipts?

    If you go the VBA route you can actually set the Type and then disable the field so it can't be changed.

    Drawback of VBA is that it won't work in the Web Client.

  • Maria Carrero Profile Picture
    150 on at
    RE: How to restrict a user to only Shipment/Invoice PO Receipts?

    Hi Liane,

    add one trigger Register Database in the table POP_Receipt for READ and READ_LOCK events , and in your script, define the permissions, and after lock all field in the form and add this code line

    result = Window_SetLineMode(window Line_Scroll of form  POP_Receivings_Entry,LINEMODE_BROWSE_ONLY);

    if the user has permissions unlock the same fields and add this code line

    result = Window_SetLineMode(window Line_Scroll of form POP_Receivings_Entry,LINEMODE_ADDS_ALLOWED);

    Regards,

    Mary

  • Community Member Profile Picture
    on at
    RE: How to restrict a user to only Shipment/Invoice PO Receipts?

    Liane,

    If you modified the window to use VBA to set the default receipt type then you also should put a script on the POP Receipt Number field to check to make sure that the Receipt type is the one that you want, and throw an error or something if the type is not the desired one.  If you are using these forms in a terminal server environment keep in mind that this will affect all users, unless you set the security for the modified form to just those users you want to roll this change to.

    If you are looking to keep the user from accessing a receipt that another user has entered, you can look at the 'User To Enter' field for the receipt and make sure that the user ID is equal to the current user's ID.

    Regards,

    Aaron

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans