Skip to main content

Notifications

Community site session details

Community site session details

Session Id : skO4xDKUWz0ptmVrYJ5SiZ
Power Apps - Building Power Apps
Unanswered

Dynamics crm : Error with multiple onload functions from different javascript files

Like (0) ShareShare
ReportReport
Posted on 13 Feb 2024 04:04:28 by 86

Hi All,

 

I have added 2 libraries on the same form. One is common and the other is specific to the form.Both have onload functions in it.

  • wnzl_incident.js is common file 
  • wnzl_incident_fraudcaserequest.js is javascript specific to the form

    I am calling first the onload of wnzl_incident.js and then the onload of wnzl_incident_fraudcaserequest.js
  • This is how the libraries are ordered - 
    Poweruser1101_0-1707796655810.png

     

     

    Poweruser1101_1-1707796841029.png

    However sometimes i get the below error - 
    ReferenceError: Web resource method does not exist: Wnzl.Crm.WebResource.Incident.FraudCaseRequest.formOnLoad. However the closest object we found is Wnzl.Crm.WebResource.Incident that contains these properties: ....
    Error Details:
    Event Name: onload
    Function Name: Wnzl.Crm.WebResource.Incident.FraudCaseRequest.formOnLoad
    Web Resource Name: wnzl_incident_fraudcaserequest
    Solution Name: Active
    Publisher Name: dev

    How can i make sure that the webresource is loaded before the form loads?
    Any help would be appreciated. 

Categories:

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started