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 get email body

(0) ShareShare
ReportReport
Posted on by 95

Hi, I use custom workflow to parse incoming emails. How can get email body in HTML? I used HtmlAgilityPack

HtmlWeb webDoc = new HtmlWeb();

HtmlDocument emailbody = new HtmlDocument();

emailbody = webDoc.Load(this.EmailReference);

 

where EmailReference for example    

http://crmserver/OrgName/_controls/emailbody/msgBody.aspx?unblockContent=1&id={30CD5EDC-A061-E111-A6E8-0003FFEE03D6}&entityType=email  

  but it didn't work.

 

*This post is locked for comments

I have the same question (0)
  • Gus Gonzalez Profile Picture
    27,113 on at

    What happened when you put it in place?

    Did it get an error?

    What are you trying to do with the workflow?

  • ant0391 Profile Picture
    95 on at

    There're no errors but emailbody = webDoc.Load(this.EmailReference) loads some wrong or empty html.

    I'm trying to parse incoming emails and create some Entities (like Lead or Request) by specific rules.

  • Gus Gonzalez Profile Picture
    27,113 on at

    I think you will be able to do it correctly with custom Workflows.

    Are you on CRM Online?

    Here is some information regarding these workflows:

    blogs.msdn.com/.../custom-workflow-actions-in-microsoft-dynamics-crm-2011-online.aspx

  • ant0391 Profile Picture
    95 on at

    My question was how to transmit email body to my custom code.

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