·
1 min read

How to prevent copy/paste from grids

In Microsoft Dynamics AX you can copy information from grids and paste that information into a Microsoft Excel worksheet. You can do this by selecting the lines you want to copy, going to File > Edit > Copy, and then pressing CTRL + V in Excel. You can also just press CTRL + C from the Dynamics AX grid.

For some customers this is extremely useful, for some other customers this can be something they don’t want the users to be able to do. And there is no way to control this functionality through standard Dynamics AX security.

Following is an example of customization you can test to block this functionality for all users.

Class: sysSetupFormRun

Method: task

First, declare a variable of type FormControl, and then add the if code block for #taskCopy:

I hope this is helpful!

Bertrand