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)

CRM 2015 Plug-in on Email to Lead Conversion

(0) ShareShare
ReportReport
Posted on by 425

Hi All,
I am going to write a plug-in on Lead, is there any property or event that i can use to differentiate if the lead is created by converting an email to lead. Need to set a field based on that.
It is CRM 2015 on Prem.

Thanks

Jeevan

*This post is locked for comments

I have the same question (0)
  • David Jennaway Profile Picture
    14,065 on at

    I don't think there is a specific property that defines this. When an email is converted to a lead, 2 changes happen:

    1. The lead is created
    2. The email is updated to set the regardingobjectid to the new lead. I think this also updates the activityparty record for the From recipient

    I think these are sent as 2 independent requests. You could try writing a plugin on the update of the email to check if the regardingobjectid is being set to a lead that was created by the same user and very recently

  • Jeevan Kumar Balija Profile Picture
    425 on at

    I have implemented similar functionality on email to case create where the plugin context on the case pre create has message name in the parentcontext as "convertactivity" which allowed me to write some custom logic, but its not the same with email to Lead. So I am looking for some help if somebody has done anything like this before on lead.

  • Felippe Profile Picture
    796 on at

    Do a plugin step on PostCreateLead Async, retrieve with a queryExpression a list of email who targeting to this lead. If have at least one, run your custom code.

    Best Regards,

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