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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Javascript error occuring for users when saving event

(0) ShareShare
ReportReport
Posted on by 40

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.

I have the same question (0)
  • Suggested answer
    Nya Profile Picture
    29,064 on at

    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 140 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
11manish Profile Picture

11manish 87

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans