Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Javascript error occuring for users when saving event

(0) ShareShare
ReportReport
Posted on by 23

One of the users get the following error in his browser whenever trying to save a record of type "Event" (msmgt_event)

ReferenceError: Web resource method does not exist: MSDynCrmMkt.Handlers.setFormPageJavascriptCodeInEvent
at _handleMethodNotExistError (environment.crm4.dynamics.com/.../app.js
at _.execute (environment.crm4.dynamics.com/.../app.js
at environment.crm4.dynamics.com/.../app.js
at i (environment.crm4.dynamics.com/.../app.js
at J._executeIndividualEvent (environment.crm4.dynamics.com/.../app.js
at J._executeEventHandler (environment.crm4.dynamics.com/.../app.js
at Object.execute (environment.crm4.dynamics.com/.../app.js
at N._executeSyncAction (environment.crm4.dynamics.com/.../app.js
at N._executeSync (environment.crm4.dynamics.com/.../app.js
at N.executeAction (environment.crm4.dynamics.com/.../app.js

Error Details:
Event Name: onsave
Function Name: MSDynCrmMkt.Handlers.setFormPageJavascriptCodeInEvent
Web Resource Name: msdyncrm_MktEvtMgmtLink.CrmWebResource
Solution Name: MicrosoftDynamics_MktEvtMgmtLink_patch
Publisher Name: microsoftdynamics

This user is superuser (system admin security role) and has all other security roles exactly as I do and another superuser who has no problems whatsoever.

The only "difference" is that the user with this problem is more or less brand new in the system.

Any hints/tips of what could be the cause for this would be greatly appreciated.

  • Suggested answer
    Nya Profile Picture
    Nya 29,058 on at
    RE: Javascript error occuring for users when saving event

    Hi,

    It is an OOTB function of Event form in Marketing application.

    pastedimage1630981885372v1.png

    Please check if the Function and the Library can be matched in the form.

    Steps:

    1. Navigate to Advanced Settings > Settings > Customizations > Customize the system.
    2. Expand the list of entities and click the main form of Event entity.
    3. Click the "Form properties" button.
    4. Switch to OnSave event and double click the "MSDynCrmMkt.Handlers.setFormPageJavascriptCodeInEvent" function.

    pastedimage1630982240684v2.png

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,187 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,966 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans