Task recorder export to PC menu item type error

In D365 when trying to export a task record the user can get follow error

Unable to find menu item '' of type 'Display' in metadata.


This is caused by the following legacy call:

MenuFunction::runClient(menuItemName, menuItemType, false, args);


Replace it by the following call and the task recording will work.

MenuFunction menuItem = new MenuFunction(menuItemName, menuItemType);
menuItem.run(args);

Comments

Popular posts from this blog

Execute and access code restricted internals as a partner or customer

Expressions in query ranges

Removing duplicate records