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)

How to create an event handler when a lead is qualified in Javascript

(0) ShareShare
ReportReport
Posted on by 550

Hi, 

I want to run a javascript code when a lead gets qualified into opportunity , to get the lead values into opportunity record ..I it possible create an event handler on qualification of a lead ..? if so what are the possible ways?

Thanks,

Hajira

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi ,

    You can create a workflow / field mapping to do that. It is easier than using JS. Make sure the field type is same between lead and opportunity.

    Field mapping

    https://community.dynamics.com/crm/b/crmtipstricksnewstomaster/archive/2017/01/17/mapping-lead-data-to-new-opportunities-in-dynamics-365-crm

    Workflow

    [View:/cfs-file/__key/communityserver-discussions-components-files/117/3480.24.png]

    [View:/cfs-file/__key/communityserver-discussions-components-files/117/2476.25.png]

    Additional

    use workflow when you have conditional mapping else go for field mapping

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Hajira,

    You don't need any single line of code to transfer data between lead and opportunity - you have mapping for it. Check this article - ledgeviewpartners.com/.../mapping-lead-data-new-opportunities-dynamics-365crm

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hello Roshan ,

    I think you should use field mapping in this case instead of writing javascript as dynamics crm OOB  field mapping are applicable only when you are copying data  from first entity to second entity. Here is some references which will definitely help you.

    community.dynamics.com/.../mapping-lead-data-to-new-opportunities-in-dynamics-365-crm

    itsolutions.bdo.ca/.../using-field-mapping-in-microsoft-dynamics-crm-to-copy-data-between-associated-records

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