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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Qualify Lead Command from JavaScript MS CRM 2013

(0) ShareShare
ReportReport
Posted on by 200

Hi,

As per the requirement we need to show custom web resource (like modal popoup) on click of OOB qualify button. We have custom button ('Exit') on this web resource , on click of this button CRM OOB Lead Qualification process should work as it is.

Our issue is we have many inline JavaScript functions, so we cant simply write code like return/exit to stop execution of JavaScript and continue CRM OOB qualify lead functionality.

How can I stop JS execution and continue CRM OOB qualify lead process from JavaScript?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at

    You can add wait in your javascript code.. and need to check Is lead qualified? if qualified then execute your code.. if wait and check again for lead qualification.

    You can add timeout or wait in JavaScript using setInterval() or setTimeOut

    Here are some examples

    stackoverflow.com/.../javascript-sleep-wait-before-continuing

    stackoverflow.com/.../sleep-pause-wait-in-javascript

    www.sitepoint.com/delay-sleep-pause-wait

    www.w3schools.com/.../js_timing.asp

    Hope this will help...

  • Vinayak chavan Profile Picture
    200 on at

    Thanks Mahadeo for your response.

    Issue is we need to execute javascript before lead qualification process. And depends upon selection on web resource, stop the javascript execution and go with OOB lead qualification process.

  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at

    If you want to stop in between  your script then you can use return. .

    after return function code is not executed..

    or you can use some conditions. .

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans