web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • ant0391 Profile Picture
    95 on at
    Re: How to get email body

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

  • Gus Gonzalez Profile Picture
    27,113 on at
    Re: How to get email body

    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
    Re: How to get email body

    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
    Re: How to get email body

    What happened when you put it in place?

    Did it get an error?

    What are you trying to do with the workflow?

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans