web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Invalid JS action (+) new quote from sub-grid

(0) ShareShare
ReportReport
Posted on by 905

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:

pastedimage1615830841973v1.png

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!!

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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:

    javascript - RibbonActions.js Deprecated in Dynamics 365 Unified Interface. Is there any new JS Library replacing RibbonActions.js? - Stack Overflow

    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

    pastedimage1615864219831v6.png

    (2) Create a new solution and add quote entity to it.

    pastedimage1615864120625v5.png

    2.Open Ribbon Workbench with new created solution.

     pastedimage1615863985970v4.png

    3.In subGrid bar, right-click ‘+ADD NEW{0}’ button and select ‘customise button’ option.

     pastedimage1615863649313v1.png

    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.

    pastedimage1615863877598v3.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans