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 :
Service | Customer Service, Contact Center, Fie...
Suggested answer

ReferenceError: crmCreate is not defined

(0) ShareShare
ReportReport
Posted on by 10

Hi everyone,

I am new to using Dynamics 365 and am just trying to get the basics set up.  Is anyone able to help with this error please?

Thanks,

Elysia

I have the same question (0)
  • Suggested answer
    Shawnsauve Profile Picture
    1,093 on at
    RE: ReferenceError: crmCreate is not defined

    The error message you're seeing indicates that the function "crmCreate" is not defined or cannot be found in the current context. This function is typically used to create new records in Dynamics 365.

    Here are some possible reasons why you might be seeing this error:

    1. Incorrect function name: Double-check that the function name is spelled correctly and that the correct case is used. It should be "crmCreate" with a lowercase "c".

    2. Missing library reference: Make sure that the necessary library references are included in your code. The crmCreate function is part of the Dynamics 365 client-side SDK, so you'll need to reference the SDK in your code to use it.

    3. Timing issue: If you're running the code before the necessary scripts have loaded, you may see this error. Make sure that your code is executed after the necessary scripts have finished loading.

    If you're still having trouble after checking these items, please provide more context about when and where the error is occurring, as well as any relevant code snippets. This will help me provide more specific guidance.

  • nickmanny Profile Picture
    136 on at
    RE: ReferenceError: crmCreate is not defined

    If you are using a script file and receive the error message "Uncaught ReferenceError: crmCreate is not defined," it means that 'crmCreate' is either a variable or a method that you are attempting to use before declaring it using the var keyword. This error indicates that there is a reference to a non-existent variable somewhere in the code. To fix this error, you need to declare the variable or ensure that it is available in the current script or scope. If the variable is not available, it may indicate that the library is not loaded, and JavaScript does not recognize 'crmCreate'.

    To solve this error: Load your library at the beginning of all your scripts.

    There can be multiple other reasons for this issue:

    • Conflict with Other Libraries
    • Path to your library included is not correct
    • Llibrary file is corrupted
    • Working offline (when you use CDN)
  • Suggested answer
    CRMJetty Profile Picture
    3,512 on at
    RE: ReferenceError: crmCreate is not defined

    Hello,

    https://www.inkeysolutions.com/blogs/resolve-the-error-in-the-automatic-record-creation-rules-of-the-queue-entity-when-the-sender-of-the-email-is-a-contact-as-well-as-a-user-in-the-microsoft-dynamics-365/

    I hope it helps,

    Thanks.

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

  • Suggested answer
    KK-365 Profile Picture
    1,010 on at
    RE: ReferenceError: crmCreate is not defined

    Hi,

    Looks like there is a script written on the form which is checking few parameters on load of the form.

    If you are system admin, you can check the scripts written on the form and try deactivating for testing, however to investigating further you will have to provide more details. (like the script code.)

  • Elysia Wanakore Profile Picture
    10 on at
    RE: ReferenceError: crmCreate is not defined

    Ok, will do.  Thank you.

  • Guido Preite Profile Picture
    54,084 Moderator on at
    RE: ReferenceError: crmCreate is not defined

    looks like an internal error to me, you will need to open a support ticket with Microsoft

  • Elysia Wanakore Profile Picture
    10 on at
    RE: ReferenceError: crmCreate is not defined

    I'm currently working in 'Record Creation and Update Rule' in Customer Service Admin Center

  • Elysia Wanakore Profile Picture
    10 on at
    RE: ReferenceError: crmCreate is not defined

    Morning,

    Sorry, I didn't realise you had posted.  

    Hope this helps

    pastedimage1659122170135v1.png

    Also some error details.

    Error Details:
    Event Name: onload
    Function Name: Mscrm.Form_onload
    Web Resource Name: ConvertRuleItem_main_system_library.js
    Solution Name: System
    Publisher Name: MicrosoftCorporation

  • Guido Preite Profile Picture
    54,084 Moderator on at
    RE: ReferenceError: crmCreate is not defined

    where exactly did you get the error?

    can you post a screenshot?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 74

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 28 Super User 2025 Season 2

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 17 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans