Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

how to debug the Js in below scenario

Posted on by 150

I have a custom entity called "Phone Call". In contact form there is custom button "Create Phone Call" on click of the button "Phone Call" form should get open, while form is loading script error is coming. But when we open the same form seperately that script error is not comming. How to Troubleshoot/Debug this?

Can some one help me with clear explaination. 

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: how to debug the Js in below scenario

    Hi,

    You can refer the below links for info about debugging JS-

    blogs.msdn.microsoft.com/.../debugging-custom-javascript-code-in-crm-using-browser-developer-tools\

    You tube video-

    www.youtube.com/watch

    Hope this helps

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: how to debug the Js in below scenario

    Hello,

    Can you please provide the script that is trigerred when you click "Create Phone Call" button?

  • Suggested answer
    Priyesh Profile Picture
    Priyesh 7,392 User Group Leader on at
    RE: how to debug the Js in below scenario

    Hi Lakshmi,

    You need to decide which part of your script runs correctly.

    Once you know, write debugger; in the JS code and upload.

    Now, you'll need to keep the Console open by pressing F12, once on the file, just replicate the scenario which will hit the debugger; line of code. You can then take the debugging from there.

    Hope this helps.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans