Hi guys,
If I have a list of menu item names in excel file, can X++ help me to read this file and add those menu items to my existing Privileges ?
Might ask also how to do it ?
Thanks in advance,
Hi Axel,
You can have a look at the form Security configuration and the related coding to learn what classes to call to create and maintain privileges and link menu items with certain permissions. You would need to do a kind of reverse engineering and understand the coding. There are some DLLs used in the background to manage this all.
Hi Axel,
Please check the example of X++ classes that can be used to read XLSX and CSV files. You can also check the logic used on the form Security configuration. It also gives an overview of menu items per privilege.
community.dynamics.com/.../how-to-read-excel-and-csv-files-in-d365fo-using-x
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156