Hi All,
I've currently enabled UI for our D365 CE test instance and while testing the functionalities I'm facing the below issues with Javascript. Was hoping for assistance these if any of you have faced similar issues.
1) Currently we have a HTML Webresource on the Order form which allows attachment of files. We've used the below command to attach the file by using the object type code, and guid of the order record
parent.Mscrm.RibbonActions.addFileToRecord(entityETC, entityID);
In the classic UI, this was working fine, but the MSCRM option in UI does not have RibbonActions or addFileToRecord and in the debug mode(PF12), it shows an error that Mscrm.RibbonActions.addFileToRecord is undefined
Do we need to use a different command and Is there a workaround for this issue in UI?
In UI the MSCRM object does not show RibbonActions function under it, hence the addFileToRecord function is not available, resulting in the above error, as seen below:
Whereas in Classic UI, MSCRM object contains the RibbonActions function and the sub-functions:
2) The other JS error is while clicking on the custom ribbon buttons, we see that the below error is being displayed. What changes should be made to support this in UI ?
Error: Invalid JavaScript Action Library: /_static/_common/scripts/CommandBarActions.js is not a web resource and is not supported.
Thanks again for your assistance.
Regards,
Toly