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

D365FO Data management change tracking enable/disable not working

Displaying a value from a array field in EP

Table array field iteration