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)

Lead qualification process

(0) ShareShare
ReportReport
Posted on by 8,270

Hi,

I just realized that when you qualify a Lead, it creates an opportunity, an account and a contact. The "contact" field at opportunity entity isn't getting filled also my custom field "country" (I guess I should do something here) is blank.

After I qualify a Lead, the account created is getting linked in the opportunity entity, why the contact isn't ? it is made that way or is something wrong with my configuration?

Also, my custom field is a custom entity, how can I make the qualification process link my lead's country to all three entities?

Thanks for reading/helping :)

*This post is locked for comments

I have the same question (0)
  • RaulOcana Profile Picture
    8,270 on at

    It is possible that messing around with the Lead's relationships (1:N, N:1, N:N) on qualifying it fills my custom fields automatically?

  • Hosk Profile Picture
    on at

    If you want to change what is automatically copied during the various stages you need to edit the relationships, you can add/remove/edit the fields which are copied between entities/records

  • Suggested answer
    Rugved Gokhale Profile Picture
    on at

    Hello,

    What you experienced is the behavior which is out of the box. Generally just by including mapping in 1:N relationships, we can define what values to be carry forward from parent entity to child in a relationship(i.e. in this case Lead to Opportunity).

    But this wont be the option in your case as its a contact look-up on opportunity which do not exist in lead entity by default hence can not be simply mapped.

    But, through few lines of coding this can be achieved. Steps are as below:-

    1. Register a plugin on "QualifyLead" message -> Post Operation -> Synchronous

    2. In plugin execution context -> "OutputParameters" you'll get references of entities created during qualify process. This is under "CreatedEntities" key in collection.

    3. Just check if opportunity & contact exists here. (if opportunity checkbox is checked before qualifying lead, then only opportunity will be created). javascript:void(0);

    4. Update this opportunity with reference to contact(Contact reference could be located in sale collection "CreatedEntities")

    Thanks,

    Rugved Gokhale

  • Vijay Waghmare Profile Picture
    on at

    You can link your lead qualification process with custom entity here.

    Create a workflow on Lead “Stage Change”  event and create a record of custom entity by mapping lead attributes.

    Or you can create a plugin on “QualifyLead” message of Lead entity (postoperation) and here you can map and create you custom entity record.

    Thanks,

    Vijay

  • RaulOcana Profile Picture
    8,270 on at

    I understand that I have to do some configuration for my custom entity. But the part I don't get is that if my Lead creates an Account and a Contact, why my opportunity has an account and a blank contact? shouldn't all new 3 entities be linked?

    thanks

  • Suggested answer
    Rugved Gokhale Profile Picture
    on at

    In CRM 2011, directly or indirectly all 3 entities are linked. When a lead is qualified, it can be converted to Account/Contact or both and opportunity.

    When all 3 are selected, Opportunity is linked to Account (via common "Parent Customer" look-up which can point to account as well as contact. If account is not checked in pop-up, contact is linked in this look up directly.)

    Then depending on Contact is selected in pop-up or not, if selected, this contact is associated with newly created account as a primary contact.

    So there is no direct association to opportunity & contact, but it is indirectly through Opportunity - Account - Contact.

    Thanks,

    Rugved

  • RaulOcana Profile Picture
    8,270 on at

    Hi!

    Well I'm working with CRM 2013 Online. So it will always create the 3 options. I have checked that the Lead is linked with all three in a 1:N relationship.

    LEAD.companyname -> ACCOUNT.name

    LEAD.subject -> OPPORTUNITY.name

    LEAD.firstname -> CONTACT.firstname

    LEAD.lastname -> CONTACT.lastname

    Also I see the Opportunity N:1 relationship

    ACCOUNT.accountid <- OPPORTUNITY.parentaccountid

    CONTACT.contactid <- OPPORTUNITY.parentcontactid

    LEAD.subject <- OPPORTUNITY.parentaccountid

    and somehow the contact field is the only field that is blank.

    Thanks,

    Raul.

  • Suggested answer
    Rugved Gokhale Profile Picture
    on at

    Hello Raul,

    I understand that during lead qualification process, a case when account & contact are not mapped on lead entity and both are created automatically, only account is mapped on opportunity form with contact left empty.

    But, I another code less OOTB solution for this would be to create a background workflow ("not real time as opportunity will be created in the context of QualifyLead message, it not necessarily behave as expected") and update opportunity -> "Contact" attribute with "Primary Contact" look-up attribute of Account.

    This solution would certainly help but being background process involved, would take time because of asynchronous behavior.

    Hope this helps !

  • RaulOcana Profile Picture
    8,270 on at

    Hi,

    So without doing workflows or coding, how is people getting the contact information, from the opportunity form? I mean, you have the opportunity form and have to click on account and from there check the "primary contact" to finally see the information you're looking for?

  • Verified answer
    Rugved Gokhale Profile Picture
    on at

    Looking to the different cases in CRM 2013, what I observed is, during "QualifyLead" process if an account is created then account is given priority while mapping it to opportunity record. If both these are already mapped on lead, both will be carried forward. If there is no account mapping & no company info available on lead then account will not be created & this time contact will be mapped to opportunity.

    Try creating new test lead in a plain/vanilla system with Topic & name information. Qualify this lead to see mapped contact on opportunity. But in new lead with similar info i.e. name & topic, if in addition a company information is also specified, this company info is used to create an account & this time created contact is now mapped to account as a primary contact. In this case, contact won't be mapped onto opportunity directly. 

    But if you are open for minor customization either using async OOTB processes (without any code) or by using sync plugins (both approaches given in my above posts) this behavior can be very easily countered to bring back contact info on opportunity.  

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