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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

jquery is undefined since we have upgraded CRM to version 9

(0) ShareShare
ReportReport
Posted on by

Hi,

Since we have upgraded CRM to version 9, we received the following error:

jquery is undefined.

How to fix that?

Reagrds,

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: jquery is undefined since we have upgraded CRM to version 9

    Thanks for both answers.

    Before I did not have this problem and nowhere I needed to make a reference to jquery.

    I have checked the HTML of the CRM page and there are already reference to jquery.

    As I am clicking a button after the page as fully loaded, I do not think that is the root cause of the issue.

    Here is the code in my script that maybe causes trouble

    jQuery.support.cors = true;

       $.ajax({

           url: strUrl,

           data: {

               company: strCompanyName,

               topic: strTopic,

               bu: strBU,

               owner: strEmailOwner,

               bidmanager: strEmailBidManager,

               reference: strOpportunityID,

               startdate: strStartDate

           },

           error: function (request, status, error) {

               console.log("Error when creating the SharePoint site: " + error);

               // alert('Cannot connect to Web Service. Please report it to Support.' + error);

           },

           success: function (data) {

               if (data.CreateSalesSiteResult = true) {

                   // alert('Sharepoint Site created.');

                   console.log("SharePoint Site created.");

               }

               else {

                   //  alert('Something was wrong when creating Sharepoint Site. Please report it to Support.');

                   console.log("Something was wrong when creating the SharePoint site.");

               }

           }

       });

    What has been changed in the new version.

    And If I need to reference jquery, I do not see how I need to it in the Form Properties?

    Regards,

  • gdas Profile Picture
    50,091 Moderator on at
    RE: jquery is undefined since we have upgraded CRM to version 9

    Hrello,

    Open one  entity form editor where Jquery reference is not getting and  go to form properties. In form properties make sure the jQuery library are there.

    In addition make the jquery library in the top order  to load at the beginning compare to other library.

    This is workaround only.

  • Mahendar Pal Profile Picture
    45,095 on at
    RE: jquery is undefined since we have upgraded CRM to version 9

    Hi,

    Normally this error comes if Jquery library non loaded fully and code started executing, Can you share some code any code example here where you are getting this error for checking.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans