How get Email description attribute text using C#

I am Using CRM 2015 and Get Email activity attribute values but description
attribute getting not text only it getting the whole Html.
i just want to get the text only from description and set to Case Description.
i am getting this value as
string emailMessage = email.Attributes["description"].ToString();
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META
HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!-- /* Font Definitions */ @font-face     {font-family:"Cambria
Math";     panose-1:0 0 0 0 0 0 0 0 0 0;} @font-face     {font-family:Calibri;     panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal     {margin:0in;
    margin-bottom:.0001pt;     font-size:11.0pt;     font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink     {     color:blue;     text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed     {     color:purple;     text-decoration:underline;} span.EmailStyle17     {     font-family:"Calibri","sans-serif";   
 color:windowtext;} .MsoChpDefault     {     font-family:"Calibri","sans-serif";} @page WordSection1     {size:8.5in 11.0in;     margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1
    {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout
v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div is Test Email 1<o:p></o:p></p><p
Amatea<o:p></o:p></p></div></body></html>
Muhammad Sohail

Hello,
Take a look here:
Convert HTML to Plain Text for copying Email Message in CRM 2011 / 2013
Hope it helps,
Kind Regards

Similar Messages

  • Why i dont get email notifications when someone uses my apple account to know my location through Find my Iphone?

    Why i dont get email notifications when someone uses my apple account to know my location through Find my Iphone?

    Try adding [email protected] as a VIP contact in your icloud mail app using the appleid used for icloud if using multiple accounts (i.e different itunes and icloud account).
    But seriously that happens really !? not getting emails for using icloud services with a valid appleid.

  • How do I send a text using messages from my macbook to an iPhone phone?

    How do I send a text using messages from my macbook to an iPhone ?

    I tried to send it to their phone number, but it said they were offline.  And they downloaded iMessage for the iPhone but it still wasn't sending from my computer.  Is there some kind of trick?

  • How to check hierarchies,attribute ,text

    Bw 3.x system is there any way to check
    how many hierarchies,attribute,text available in the system in active stat
    Edited by: nam2000ind on Jun 11, 2008 2:42 PM

    Ok...Thanks...
    But Can you tell me how to find how many characteristis
    defined with master data

  • How to get email id's by using position ID

    Hi friends,
    I have position ID with me.
    please guide me how to fetch email id or users available in that position ID.
    any function module.
    Thanks,
    Yogesh

    Hi
    name of the field
    regards
    Shiva

  • How Get last five quarters data using ssrs expression

    Hi All,
    i have an ssrs report where i have to get last five quarters data  and also last five months data when i select quarterly/monthly parameter.....
    is there any possibilty that we can get this using ssrs expression
    any help please.........

    Hi Mr.SMK,
    According to your description, there is an SSRS report, you want to create a parameter, when you select quarterly, data of last five quarters will be displayed. If you select monthly, data of last five months will be displayed. If that is the case, please
    refer to the following steps:
      1. In design surface, in Report Data pane, right-click Parameters and click Add Parameter.
      2. Type parameter name and prompt, set Data Type to Date/Time.
      3. Click Available Values in left pane, select Specify values.
      4. Click Add button, in Label text box, type Quarterly, then click (fx) button and type the expression like below:
    =DateAdd("q",-5,Today())
      5. Click Add button, in Label text box, type Monthly, then click (fx) button and type the expression like below:
    =DateAdd("m",-5,Today())
      6. Right-click the dataset used to retrieve data for the report and open Dataset Properties dialog box.
      7. Click Filters in left pane, click Add button, select Data from Expression drop down list, set Operator to >=, in Value text box, type [@ParameterName].
    The following screenshots are for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • How to call Subroutines,Standard Text  & using Internal Table in SmartForm

    Hi all,
    need help in the following areas.Its very urgent!
    1.How to CAll Subroutines in Smart Forms
    2.How to CAll Standard Text in Smart Forms
    Situation:
    We have an Internal Table T_SALES with all the data which am going to display in the smartform,How to retrive data from an internal table in Smart forms
    Any Help in this direction would be highly appreciated.
    Regards
    Ramu

    Hi,
      When you are using quantity or currency fields, you have to mentiong the reference fileds in a tab called CURRENCY/QUANTITY FILEDS in the GLOBAL DATA node.
    Specifying a Currency or Quantity Reference
    Use
    In the ABAP Dictionary, you can assign a currency or quantity field to a table field. In the output of these fields, the system can then insert the relevant currency or unit:
    ·        If the value field is in the same table as the corresponding currency or quantity field, the system recognizes the reference automatically, and formats the value field according to the currency or unit in the assigned field.
    ·        If the value field is in a different table from the currency or quantity field, the system cannot recognize this reference automatically.
    In the second case, you must indicate this reference to the system in the form, to ensure that the value field is formatted correctly.
    Procedure
    You want to assign a currency or quantity field in one table (for example, CURTAB) to a value field in another table (for example, VALTAB).
           1.      Create the reference to the currency field by entering the following values:
    -         Field Name: VALTAB-VALUE, if this is the value field of VALTAB that you want to display.
    -         Reference Field: CURTAB-CURRENCY, which is the currency field of CURTAB.
           2.      Under Data Type, specify whether the data type is a currency or quantity.
    Result
    In the output of the PDF-based print form, the system formats the value field VALTAB-VALUE according to the assigned value in the currency or quantity field of the global variable CURTAB-CURRENCY.
    Thanks and Regards,
    Bharat Kumar Reddy.V
    Message was Added by: Bharat Reddy V
    Message was Added by: Bharat Reddy V

  • Any Way to Get Tapering, Diagonal Sloping Text Using FCE Alone?

    The winning film at our club competition on Thursday had an interesting final credit shot.
    The background was a three quarter view of a Roman Temple with a flat "gutter" below the roof gradually converging due to perspective.
    One line of credits moved along this, with the writing steadily becoming smaller as it moved towards the left.
    The video had been edited in FCE but the maker said this effect had been done in After Effects.
    As usual I opened my big mouth and stated that it could have been accomplished using Motion in FCE.
    I have since tried it !
    I got the lettering to move slightly diagonally across the screen but no way could I get it to taper away. Using the Distort controls in Motion had no effect on the actual lettering.
    So!.......... is it impossible using just the software that comes with FCE 3.0 ?
    Ian.

    Thanks Tom - unfortunately there's no way of showing it ..............yet !
    Your title is quite different.
    I will try to describe it basically.
    Imagine a flat plank facing you and stretching across most of the screen. Now imagine the writing appearing and crawling from right to left along the plank. That can be done with the basic Text generator.
    However, now imagine that the plank is tilted so that the right side is closer to the viewer. Because of perspective the left side looks smaller and further away.
    The writing was crawling from the wider right side to the narrower left and getting smaller so that it appeared to be travelling along the plank.
    An easy job in AE using keyframes but I think it is probably beyond the capabilities of FCE or Boris. Unfortunately I didn't think that when I mouthed off to the club !
    Ian.

  • How do I scan to text using OCR on the Envy 5660?

    Hello,
    Prior to ordering an HP Envy 5660 printer, I confirmed that OCR text recognition is expressly included in the Printer Specifications for the HP ENVY 5640, 5660, 7640, and Officejet 5740 and 8040 e-All-in-One Printer Series document here.
    As you can see, under Scanning Specifications, which apply to all models listed in the above document’s title, it says: "Scan to text: Integrated OCR software automatically converts scanned text to editable text."
    I have now received and set up the HP Envy 5660 printer that I ordered. It is connected via USB to a MacBook Pro running Mavericks (OS X 10.9.5). After clicking the Download HP Software link on the accompanying CD, I was automatically connected to HP's Product Setup area, from where I obtained the latest driver package for my operating system, "HP-ENVY-5660-series_v12.39.0.dmg." Using the "Custom Install" option, I installed “Essential Software,” “HP Scan,” and “Product Help."
    The print and scan functions on my HP Envy 5660 are working, but regardless of whether I scan a page of text via the printer’s control panel, or the installed “HP Scan” application, or the installed “Image Capture” application, I can find no evidence of integrated OCR software, and no option to convert scanned text to editable text.
    Please tell me where to locate the specified OCR software, and how to enable its operation on the Envy 5660.
    Thank you.

    Greetings, @TeaMasterLing , welcome to the community!
    I read through your post about how you are attempting to use OCR software that was to be included with your printer software installation. I was unable to recreate this situation here on my lab computer to see what you are seeing on your end.
    For that reason, I cannot provide you with a possible solution and would suggest calling in to phone support, as they can log on to your computer if need be to see how the issue could be resolved to have the OCR software working for you.
    Here is HP's contact info:
    If you are calling within North America, the number is 1-800-474-6836 and if you are calling outside of the US/Canada: click here.
    I hope you soon have a solution!
    Have a great day
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • How get report of short text in tcode MCS3N ?

    Hello Experts,
    I need to provide report to the client listing Materials and corresponding bathes with short text (DFBATCH-KZTXT) and Shelf Life Exp. Date
    I understand from community that I can Use FM 'READ_TEXT' to get this values but the problem is it provides value for one record and need this information for about 500 records. Is there any better way to do this ?
    Please advise !
    Thanks,
    Darshak

    Hi,
    As my knowledge there is no other way to read, however this will retrieve the result very fast so there wont be any performance issue you can use this read_text FM within the loop.
    If its an format_message so we can achieve other way I suppose.
    Regards,
    Vadamalai A

  • How get email address from received email?

    In the old days, like 6 months ago, I could depend on being able to salvage an intended recipient's email address from a note they sent to me. Just click on the name in a received email, then open a "new" email under that address, bang out the message, and send it. Not any more. How do I do it? This seems like a really stupid change. Why does it require complication?

    There are several ways. First is to double click the message and the message should appear on-screen with the complete address. Next is you will see a small down arrow like in my example below, click it and you will get the info you need.

  • Struts: How to set 'disabled' attribute name using a property in ActionForm

    I have the following struts tag:
    <nested:select property="someProperty" disabled="<nested:write property="screenReadOnly"/>">
       <html:options .../>
    </nested:select>
    where 'screenReadOnly' is a boolean variable in the ActionForm.
    However this does not work. Is there a way to use this technique in a struts way (without using any scriplets) for attribute names instead of having duplicate struts tags where the only difference is, in this case, the disabled value?
    For those that are interested, I get the following thrown exception:
    weblogic.servlet.jsp.JspException: (line 120): Non-matching extension tags //[ null;
    Line: 120]
    at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:856)
    at weblogic.servlet.jsp.JspLexer.mCLOSE_EXTENSION_TAG(JspLexer.java:2674)
    at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1987)
    at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1860)
    at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1100)
    at weblogic.servlet.jsp.JspParser.doit(JspParser.java:89)
    at weblogic.servlet.jsp.JspParser.parse(JspParser.java:192)
    at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
    Cheers.
    Normie.

    Rule of thumb: You can't use tags for attribute values.

  • How get area covered by text drawn on a jpanel?

    I'm trying to get the full area that a string of text covers when drawn on a JPanel. I use the below code and the width seems to be correct, but the height is wrong (I use it to make the mouse cursor change when over it). I can't seem to get the exact location of every pixel of the characters. It's either too low or misses the bottom part (I've been altering the code a lot). What am I doing wrong?
    //Widest line
    int widest = 0;
    int totalHeight = 0;
    //Loop through lines and calculate width and height
    StringTokenizer lines = new StringTokenizer( text, LINE_BREAK );
    //The actual visual bounds of the characters
    Rectangle2D visualBounds = font.createGlyphVector( fontRenderContext, text ).getVisualBounds();
    //Line metrics (info on height, ascent, descent
    LineMetrics metrics = font.getLineMetrics( text, fontRenderContext );
    //Only have one line, so use GlyphVector
    if ( lines.countTokens() == 1 )
         widest = ( int ) visualBounds.getWidth();
         totalHeight = ( int ) visualBounds.getHeight();
    else
         while ( lines.hasMoreTokens() )
              String line = lines.nextToken();
              //Get boundary
              Rectangle2D bounds = font.getStringBounds( line, fontRenderContext );
              //Set the width
              widest = Math.max( widest, ( int ) bounds.getWidth() );
              //Add to the total height
              totalHeight += bounds.getHeight();
         //Need to remove any extra lineheight for last line (since is invisible)
         totalHeight -= ( int ) ( metrics.getHeight() - visualBounds.getHeight() );
    //Set descent
    descent = ( int ) metrics.getDescent();
    //Adjust y for descent as Graphics draws a string from the baseline and we want the bottom
    y = y + descent;
    //Set width, height
    width = widest;
    height = totalHeight;

    DarrylBurke wrote:
    To get a more exact bounding rectangle, use TextLayout.
    [http://forums.sun.com/thread.jspa?threadID=5241409]
    dbThat's weird - it works! The problem is when i use the LineMetrics, the value it gives for getAscent() is actually the text's height! TextLayout has this correctly as the height.

  • How to email a scheduled report using CRS XI R2

    Hi,
    I'm very new to CRS. I know how schedule a report but I got an error message when I set
    Destination: Email (SMTP)
    Use the Job Server's defaults
    Server Used: <servername>.reportjobserver
    Error message: address error:SMTP_E_USER_NOT_LOCAL(551):CrystalEnterprise.Smtp

    Hi,
    have you configured the SMTP mail settings on your Job server? You can do this in the CMC, under Servers->Job Server. You can also provide the name of your SMTP host and the username/password that should be used eachtime you schedule the report itself. This will override the Job Server default settings.
    Regards,
    Stratos

  • How to email attachment on ipad using gmail

    I can't figure out how to include an attachment with an email through gmail?
    Thanks

    I have a simple solution.
    From your browser, NOT an app. So in Safari, Chrome, Mozilla, Explorer.
    Go to drive.google.com and login, if you aren't already (be sure to use desktop format and not mobile)
    Choose the document you want to send and open it (this should direct you to docs)
    When you have your document open please click file in the upper left and scroll down to email as attachment
    There is a dropdown menu for "Attach As" where you may choose your file format
    Below that follow like any other email: To, Subject, Message
    Hit send, now you've attached and sent your file

Maybe you are looking for

  • What do I need to migrate files from old eMac to new iMac?

    I just purchased a new iMac and need to transfer information from my old eMac to the new one. I have not even taken the iMac out of the box, just read over the booklet. What do I need to have to be prepared to migrate information from the start up ap

  • AP Isolation feature

    I have a linksys Wrt150N. I was reading the manual for Advanced wireless settings and i came across AP isolation which said "wireless devices will be able to communicate with the Router but not each other". I have three computers(2 wireless and 1 dir

  • Logical Warehouse Management System

    Dear All, I want to know the concept of <b>'Logical Warehouse System'</b> in SAP. Are all steps of Warehouse Management Syst Implementation to be followed? Can the stock in Warehouse be considered in MRP? Where in SPRO can I get exact steps for LOGIC

  • Supported file formats in Photoshop CS6

    This question was posted in response to the following article: http://helpx.adobe.com/content/help/en/photoshop/using/supported-file-formats-photoshop-cs 6

  • LCM Promotion Error

    Hi everybody, I have face an error while using LCM. I have a Production env and Dev env. They are both BOXI 3.1. I can successfully login to LCM and define a new job. At this, I login to production env with a user which is member of administrators gr