
Hello everyone,
I was trying to create a new quotation in the sub-grid from the opportunity entity, but every time I click on "+ New Quote" I get the below error:
Invalid JavaScript Action Library: /_static/_common/scripts/CommandBarActions.js is not a web resource and is not supported.
It was working before, but today’s I tried again to issue a new quote in the opportunities and suddenly it stopped working.
I didn't do any customization, everything is based on the system customization.
Do you have any idea on how to solve the above issue? and why this problem keeps occurring?
Your help will be highly appreciated.
Thank you!!
Hi EBMRay,
Unfortunately, CommandBarActions.js has been deprecated in UCI, so this JS file is not loaded in UCI which then caused this error.
As following link provide similar example--RibbonActions.js also deprecated, you can refer it to use $webresource to replace it:
which need the help of Ribbon Workbench tool.
This is the download page for Ribbon Workbench
http://www.develop1.net/public/rwb/ribbonworkbench.aspx
This is the basic tutorial of Ribbon Workbench:
https://community.dynamics.com/crm/b/develop1/posts/mastering-ribbon-workbench-2016
1. Go Settings > Solutions.
(1) Import solution that just download
(2) Create a new solution and add quote entity to it.
2.Open Ribbon Workbench with new created solution.
3.In subGrid bar, right-click ‘+ADD NEW{0}’ button and select ‘customise button’ option.
4.Click the command, find ‘Invalid JavaScript Action Library’ to replace it.
In my solution, the default library is
$webresource:Sales/Quote/Quote_main_system_library.js
And the default function is
Mscrm.QuoteGridCommandActions.addNewFromSubGridStandard
You can try to use it.
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.