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

How to disable auto enabled flight key using KillSwitch

Technical intro to Feature management in D365FO

Continuous integration and deployment Power platform FinOps tweaking