REST API, multiple places for one text in Emails JSON

Hi,
I am using REST API to operate on Emails object. Now I am having a question which confuses me. As you can see, from the returned JSON there are three places stored the email content text "this is test h...." which locate at "htmlContent", "root" and "plainText". So a problem is which is the real text which affects the update back to Eloqua by put/post method.  Or what did I miss?
Another major problem besides the aboe problem, I found there are also other diferences like format.
"htmlBody":
this is test h<\/span><\/td><\/tr><\/table><\/div><\/div><\/td><td align=\"left\" valign=\"top\" width=\"251\" height=\"37\" id=\"empty7\"><\/td><\/tr><tr><td align=\"left\" valign=\"top\" width=\"51\" height=\"19\" id=\"empty8\"><\/td>\r\n<td align=\"left\" valign=\"top\" width=\"6\" height=\"19\" id=\"empty9\"><\/td><td align=\"left\" valign=\"top\" width=\"292\" height=\"19\" id=\"empty10\"><\/td><td align=\"left\" valign=\"top\" width=\"251\" height=\"19\" id=\"empty11\"><\/td><\/tr><tr><td align=\"left\" valign=\"top\" width=\"51\" height=\"51\" id=\"empty12\"><\/td><td align=\"left\" valign=\"top\" width=\"6\" height=\"51\" id=\"empty13\"><\/td><td valign=\"top\" align=\"left\" rowspan=\"1\" colspan=\"1\" width=\"292\" height=\"51\" id=\"view14\" style=\"color: #000000; font-family: Arial; font-size: 12px; line-height: 18px; letter-spacing: 0px\"><div id=\"sc3432\" class=\"sc-view hidden-border inline-styled-view editor-outline\" style=\"left: 57px; width: 292px; top: 76px; height: 51px; color: #000000; font-family: Arial; font-size: 12px; line-height: 18px; letter-spacing: 0px; overflow: hidden\"><div class=\"co-border-style\" style=\"\">\r\n<table width=\"292\" height=\"51\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" bordercollapse=\"collapse\" class=\"co-style-table\" style=\"color: #000000; font-family: Arial; font-size: 12px; line-height: 18px; letter-spacing: 0px; margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px\"><tr><td valign=\"top\" class=\"valign-able\"><span class=\"remove-absolute\">IE11 seems<a href=\"http://s1134754694.t.en25.com/e/er?s=1134754694&lid=5&elq=<span class="eloquaemail">recipientid<\/span>\" title=\"link test\"> does not suppor<\/a>t text mo<a href=\"http://www.example.com/?elq=~~eloqua..type--emailfield..syntax--recipientid~~&elqCampaignId=~~eloqua..type--campaign..campaignid--0..fieldname--id~~\">de. T<\/a>his is <b><font style=\"font-size:22px;\">create<\/font><\/b>d from Chrome.
"root:
"IE11 seems<a href=\\\"http://www.example.com/?elqTrack=true\\\" title=\\\"link test\\\"> does not suppor<\/a>t text mo<a href=\\\"http://www.example.com/\\\">de. T<\/a>his is <b><font style=\\\"font-size:22px;\\\">create<\/font><\/b>d from Chrome.\"
"plainText":
this is test h    \r\n\r\nIE11 seems does not suppor <http://<elqdomain type=1/>/e/er?s=1134754694&lid=5&elq=<span class=eloquaemail>recipientid<\/span>>t text mode. T <http://www.example.com/?elq=~~eloqua..type--emailfield..syntax--recipientid~~&elqCampaignId=~~eloqua..type--campaign..campaignid--0..fieldname--id~~>his is created from Chrome.
So the problem is how do I differentiate them?
"bounceBackEmail": "[email protected]",
"contentSections": [],
"createdAt": "1409394422",
"createdBy": "12",
"currentStatus": "Draft",
"depth": "complete",
"dynamicContents": [],
"emailFooterId": "1",
"emailGroupId": "1",
"emailHeaderId": "1",
"encodingId": "3",
"fieldMerges": [],
"folderId": "42",
"forms": [],
"htmlContent": {
  "docType": "<!DOCTYPE html>",
  "htmlBody": "<body style=\"\"> <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"center\" height=\"0\"><\/td><\/tr><tr><td><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" bordercollapse=\"collapse\" align=\"center\" width=\"600\" id=\"sc3170\" style=\"table-layout: auto\"><tr><td align=\"left\" valign=\"top\" width=\"51\" height=\"20\" id=\"empty0\"><\/td><td align=\"left\" valign=\"top\" width=\"6\" height=\"20\" id=\"empty1\"><\/td><td align=\"left\" valign=\"top\" width=\"292\" height=\"20\" id=\"empty2\"><\/td><td align=\"left\" valign=\"top\" width=\"251\" height=\"20\" id=\"empty3\"><\/td><\/tr><tr><td align=\"left\" valign=\"top\" width=\"51\" height=\"37\" id=\"empty4\"><\/td><td valign=\"top\" align=\"left\" rowspan=\"1\" colspan=\"2\" width=\"298\" height=\"37\" id=\"view5\" style=\"color: #000000; font-family: Arial; font-size: 12px; line-height: 18px; letter-spacing: 0px\">\r\n<div id=\"sc3447\" class=\"sc-view hidden-border inline-styled-view editor-outline\" style=\"left: 51px; width: 298px; top: 20px; height: 37px; color: #000000; font-family: Arial; font-size: 12px; line-height: 18px; letter-spacing: 0px; overflow: hidden\"><div class=\"co-border-style\" style=\"\"><table width=\"298\" height=\"37\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" bordercollapse=\"collapse\" class=\"co-style-table\" style=\"color: #000000; font-family: Arial; font-size: 12px; line-height: 18px; letter-spacing: 0px; margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px\"><tr><td valign=\"top\" class=\"valign-able\"><span class=\"remove-absolute\">this is test h<\/span><\/td><\/tr><\/table><\/div><\/div><\/td><td align=\"left\" valign=\"top\" width=\"251\" height=\"37\" id=\"empty7\"><\/td><\/tr><tr><td align=\"left\" valign=\"top\" width=\"51\" height=\"19\" id=\"empty8\"><\/td>\r\n<td align=\"left\" valign=\"top\" width=\"6\" height=\"19\" id=\"empty9\"><\/td><td align=\"left\" valign=\"top\" width=\"292\" height=\"19\" id=\"empty10\"><\/td><td align=\"left\" valign=\"top\" width=\"251\" height=\"19\" id=\"empty11\"><\/td><\/tr><tr><td align=\"left\" valign=\"top\" width=\"51\" height=\"51\" id=\"empty12\"><\/td><td align=\"left\" valign=\"top\" width=\"6\" height=\"51\" id=\"empty13\"><\/td><td valign=\"top\" align=\"left\" rowspan=\"1\" colspan=\"1\" width=\"292\" height=\"51\" id=\"view14\" style=\"color: #000000; font-family: Arial; font-size: 12px; line-height: 18px; letter-spacing: 0px\"><div id=\"sc3432\" class=\"sc-view hidden-border inline-styled-view editor-outline\" style=\"left: 57px; width: 292px; top: 76px; height: 51px; color: #000000; font-family: Arial; font-size: 12px; line-height: 18px; letter-spacing: 0px; overflow: hidden\"><div class=\"co-border-style\" style=\"\">\r\n<table width=\"292\" height=\"51\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" bordercollapse=\"collapse\" class=\"co-style-table\" style=\"color: #000000; font-family: Arial; font-size: 12px; line-height: 18px; letter-spacing: 0px; margin-top: 0px; margin-left: 0px; margin-right: 0px; margin-bottom: 0px\"><tr><td valign=\"top\" class=\"valign-able\"><span class=\"remove-absolute\">IE11 seems<a href=\"http://s1134754694.t.en25.com/e/er?s=1134754694&lid=5&elq=<span class="eloquaemail">recipientid<\/span>\" title=\"link test\"> does not suppor<\/a>t text mo<a href=\"http://www.example.com/?elq=~~eloqua..type--emailfield..syntax--recipientid~~&elqCampaignId=~~eloqua..type--campaign..campaignid--0..fieldname--id~~\">de. T<\/a>his is <b><font style=\"font-size:22px;\">create<\/font><\/b>d from Chrome.<\/span><\/td><\/tr><\/table><\/div><\/div><\/td><td align=\"left\" valign=\"top\" width=\"251\" height=\"51\" id=\"empty15\"><\/td><\/tr><tr><td align=\"left\" valign=\"top\" width=\"51\" height=\"473\" id=\"empty16\"><\/td><td align=\"left\" valign=\"top\" width=\"6\" height=\"473\" id=\"empty17\"><\/td>\r\n<td align=\"left\" valign=\"top\" width=\"292\" height=\"473\" id=\"empty18\"><\/td><td align=\"left\" valign=\"top\" width=\"251\" height=\"473\" id=\"empty19\"><\/td><\/tr><\/table><\/td><\/tr><tr><td align=\"center\" height=\"0\"><\/td><\/tr><\/table> <\/body>",
  "metaTags": [],
  "root": "SC.Page.design({mainView: CoreOrion.DropView.design({inlineStyles: {\"borderWidth\": \"2\",\"borderStyle\": \"none\"},childViews: [CoreOrion.TextBoxView.design({layout: {\"left\": 57,\"top\": 76,\"height\": 51,\"width\": 292},value: \"IE11 seems<a href=\\\"http://www.example.com/?elqTrack=true\\\" title=\\\"link test\\\"> does not suppor<\/a>t text mo<a href=\\\"http://www.example.com/\\\">de. T<\/a>his is <b><font style=\\\"font-size:22px;\\\">create<\/font><\/b>d from Chrome.\",inlineStyles: {\"borderWidth\": \"2\",\"borderStyle\": \"none\",\"color\": \"#000000\",\"fontFamily\": \"Arial\",\"fontSize\": \"12px\",\"lineHeight\": \"18px\",\"borderColor\": \"#000\",\"letterSpacing\": \"0px\"}}),CoreOrion.TextBoxView.design({layout: {\"left\": 51,\"top\": 20,\"height\": 37,\"width\": 298},value: \"this is test h\",inlineStyles: {\"borderWidth\": \"2\",\"borderStyle\": \"none\",\"color\": \"#000000\",\"fontFamily\": \"Arial\",\"fontSize\": \"12px\",\"lineHeight\": \"18px\",\"borderColor\": \"#000\",\"letterSpacing\": \"0px\"}})]})})",
  "systemHeader": "<style>body{   } a img{border: none;}.ReadMsgBody { width: 100%;}.ExternalClass {width: 100%;}div.sc-view.hidden-border.inline-styled-view.editor-outline {height: 100% !important;}<\/style>",
  "type": "StructuredHtmlContent"
"hyperlinks": [
   "href": "http://s1134754694.t.en25.com/e/er?s=1134754694&lid=5&elq=<span class="eloquaemail">recipientid<\/span>",
   "id": "-1",
   "name": " does not suppor",
   "type": "Hyperlink"
   "href": "http://www.example.com/",
   "id": "-2",
   "name": "de. T",
   "type": "Hyperlink"
"id": "71",
"images": [],
"isPlainTextEditable": "false",
"isTracked": "false",
"landingPages": [],
"layout": "{\"body\":{\"width\":600,\"height\":600}}",
"name": "Erica Email 2",
"permissions": "fullControl",
"plainText": "\r\n\r\nthis is test h    \r\n\r\nIE11 seems does not suppor <http://<elqdomain type=1/>/e/er?s=1134754694&lid=5&elq=<span class="eloquaemail">recipientid<\/span>>t text mode. T <http://www.example.com/?elq=~~eloqua..type--emailfield..syntax--recipientid~~&elqCampaignId=~~eloqua..type--campaign..campaignid--0..fieldname--id~~>his is created from Chrome.    \r\n\r\n",
"replyToEmail": "[email protected]",
"replyToName": "Technology Partner – Welocalize",
"sendPlainTextOnly": "false",
"senderEmail": "[email protected]",
"senderName": "Technology Partner – Welocalize",
"style": "{}",
"subject": "Erica",
"type": "Email",
"updatedAt": "1409547402",
"updatedBy": "12"

hi leo,
if you're looking to update the contents of the email then:
* change htmlBody to update the html version of the email
* change plainText to update the plain text version of the email
you can safely ignore the root property.
~ alex

Similar Messages

  • Multiple places for one event

    Hi, does anybody know if it is possible to add multiple locations to one event in iPhoto? Thanks in advance.

    You can only assign directly one location to each event, but each photo in the event may be assigned to an individual location. When you display the event in places you will see all the different locations.

  • Multiple payers for one sold to party

    Hi All,
    Can we have multiple payers for one sold to party?
    Thanks

    Hi
    Yes, you can have multiple PAYER for one Sold-to-party (only in the Customer master).
    This Partner relationship is maintained in two places. They are,
    > Customer master ( sales area data > partner function tab )
    > Sales documents (at Header level and Item level)
    In Customer master data, you can have multiple partners ( e.g, multiple Payers) for one Partner function( e.g, SH,BP,PY).
    But in Sales document, you can have only one Partner for one Partner function.
    So, you can have only in Customer master data multiple pertners. So, first create the different Payers through XD01 ,choosing Account group "Payer".
    Then assign all those PAYERS  in the master data of the Sold-to-party by going in the change mode XD02 and save it.
    When you create the Billing document, system will give a pop-up of those list of Payers and you have to choose one . You can have only one Payer in one Billing document.

  • On my contact list I have multiple names for one person

    On my contact list I have multiple names for one person.

    The Account Owner can see the call/text logs for all lines on the account, but each line needs its own My Verizon account for messaging and backups.  Those lines will be listed as Account Members and will have limited info. available to them regarding the account.

  • Can you have multiple users for one account?

    Can you have multiple users for one account? if so how do you set it up.
    We are using it for our department and it would be great to see who created what form instead of it being all one name.

    Each person should have their own account. You can easily share the forms with other people in your department. You will be able to see who the author of the form is.
    More information on how to share :
    http://forums.adobe.com/docs/DOC-2462
    Information on how to copy a forms to a different account :
    http://forums.adobe.com/docs/DOC-1390
    Hope this helps
    Gen

  • How do i scan multiple pages for one attachment

    I know how to scan but I don't know how to scan multiple pages for one attachement....Help please

    Hi dagda24,
    You can scan multiple pages into a single document with the scan to PDF option.  Use the following steps to do so:
    1.  Open MP Navigator.
    2.  Click One Clcik.
    3.  Click Save to PC.
    4.  Change the File Type from PDF to PDF (multiple pages).
    5.  Make any other changes as needed, then click scan.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to open multiple sessions for one user?

    Sorry for the silly question but I couldn't find it googling or searching through this forum, so I started wondering whether it's possible in SQL Developer to open multiple sessions for one user. I'm fairly new to SQL Developer and databases in general.
    When I open SQL Developer and connect to a schema, a worksheet opens named MYSCHEMA. If I disconnect then connect, another worksheet opens, named MYSCHEMA~1. I assumed these were different sessions, but if I enter into one worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 1
    update my_table set col1 = 0 where row_id = 1
    select col1 from my_table where row_id = 1
    -- shows result is 0and then enter into the second worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 0I would have expected the second worksheet to report 1 because the first worksheet did not issue a COMMIT. Thus, I'd guess both worksheets are the same session? Is that right? If so, how do I have two sessions open simultaneously (opened by same user)?
    I'm trying to implement the code at the bottom of this post, for which testing requires at least two sessions:
    Re: Help with Procedure
    Edited by: tem on Apr 18, 2012 6:44 AM

    Thanks Jim,
    Ctrl-Shift-N doesn't do anything for me. I'm on a mac -- by experimenting it looks like command-N does what you're looking for. This appears to be the same as left-clicking on the "New" icon in the top left corner of SQL Developer, or selecting from the pull-down menu, File > New.
    This opens "Create a New" window that appears to be a wizard. What would I select at this point? Options are: Database Connection, Table, View, Package, ...
    I don't see an option for "Worksheet".
    UPDATE:
    OK, I found that if I select "SQL File", a worksheet becomes available. Perhaps this is what you intended. However, when I issue the command
    select col1 from my_table where row_id = 1;it still returns 0 instead of 1. Hmm, maybe my initial assumption was wrong -- if this is a second (e.g. different) session, should I expect the changes made in the first session in SQL Developer (the UPDATE command) WITHOUT a commit, to be observed in this second session? I thought that changes made in one session were not viewable in a different session until these changes are committed in the first session? If so, how to show this in SQL Developer? I must be missing something basic here.
    Or, is SQL Developer issuing some sort of "auto-commit" without my knowledge?
    Edited by: tem on Apr 18, 2012 8:00 AM

  • Multiple Values For one Condition in Choose From List

    I have used one Business Partner Choose From List in my form but i want to give condition in that choose from list on GroupCode .But the condition will have multiple values like 100,102,104 then how i will write the code to incorporate multiple values for one single condition.

    Hi,
    Check this thread
    How to set a Multiple condition in a single CFL
    Hope that helps,
    Vasu Natari.

  • Multiple Labels for One Order

    Can anybody tell me if it is possible to produce multiple labels for one order. For example a customer orders 4 units. A standard package holds 3 units so an additional package is required for the fourth unit. As a result two packing labels are required. Does OM 11i support this?

    Hi Aj
    Thanks for your quick response. I was think on the same lines and you have confirmed that we will have to split the line into several lines on sales order.
    I am trying to do that now in our ECC box i.e item 10 with payer 1 and item 2 with payer 2. But as soon as I try to change the payer on item 2, i get the following error message which relates to credit management being active.
    I am assuming once we decativate CM, we should be good to go. PLease confirm. Also once its time for billing, will SAP automatically split the billing into different invoices per sales order line item based upon number of payers on the line items?
    PLease confirm your thoughts.
    Regards
    Jai

  • Multiple currency for one vendor

    Hi,
    Is there any way to have multiple currency for one Vendor?

    Hi Siva,
    Yes, It is possible to maintain multiple currency for one vendor. How ? The procedure as follows.
    During vendor creation using T-code XK01 and currency enter input data screen select Extra option on the top of the screen click and display  'Add Purchasing Data'  option click opened new screen and give input data plant, tick mark of the option Data retent.at plant level allowed and tick for OK.
    After that, you have enter multiple currency for the same vendor during vendor creation time, then you will create PO using T-code ME21N the currency field you have fill as you required currency by default first currency of vendor created will be display.
    Hope, it is useful for you.
    Regards,
    K.Rajendran

  • Multiple choose for one parameter

    Hi, does Oracle Report support the multiple choose for one parameter? i used a IN statement inside my WHERE conditions as following
    Select ....
    where ....
    content.style IN (:p_style)
    (content.style is a column in table "content", and "p_style" is a bind variable)
    i want user can have multiple choises on p_style value. but in the parameter form i only can make one choise. Does any one know how to do the multi choise from parameter form? if you do, please help me. Thank you very much.
    Li

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by whl:
    Hi, does Oracle Report support the multiple choose for one parameter? i used a IN statement inside my WHERE conditions as following
    Select ....
    where ....
    content.style IN (:p_style)
    (content.style is a column in table "content", and "p_style" is a bind variable)
    i want user can have multiple choises on p_style value. but in the parameter form i only can make one choise. Does any one know how to do the multi choise from parameter form? if you do, please help me. Thank you very much.
    Li<HR></BLOCKQUOTE>
    you can do that by flowing the stap
    at first you will write a select statement
    select ...
    From ...
    where Style (colomn name) = &style1
    then you create a user parameter soupose wich name is P_style and which valus is x, y, and z you should enter another value soupose that name is 'All' (All means x + y + Z)
    then you write in after parameter form trigger...
    IF :P_style = 'All' then
    :style1 := null;
    Else :style1 := 'and style (style means your column name) = :P_style;
    end if;
    null

  • Multiple Vendors for one Document Number in BW

    Hello All,
    We are getting Multiple Vendors for one document in BW. In R/3, standard table and RSA3, we are able to see correct vendor where as when it is coming into BW it is showing incorrect vendor in PSA and Data Target.
    All issues are coming for Process Key 1 only.
    *For Example:*
    Document: 9400000007
    Schedule Line:1
    Doc Item: 1
    Vendor:
    0010019229 - Incorrect Vendor
    0010018962 - Correct Vendor
    Committed Quantity: 0
    Doc Type:
    ZNB
    ZNPP
    Process Key: 1
    Not sure how to upload screen shot.
    Please suggest.
    Thanks,
    Vijay

    Hi ,
    Are you loading for the first time ? If yes have you checked Transaction BF11 settings.
    Regards
    Rahul Bindroo

  • Lightroom 5 slowdown, my post processing times have tripled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

    my post processing times have tripeled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

    my post processing times have tripeled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

  • My mail is not accepting my password for one of my email accounts. How can I fix this?

    Mail is not accepting my password for one of my email accounts. I know the passoword is correct.
    It will accept my password for one of my email accounts but not the other.
    I have reset the password in the account settings but it still will not work.
    how can I fix?

    From the Mail menu bar, select
    Window ▹ Connection Doctor
    Click the Show Detail button. A drawer opens. Click Check Again and post the text that appears. Anonymize any personal information before posting.

  • Why do I keep having to reenter my password for one of my email accounts?

    Why do I keep having to reenter my password for one of my email accounts?

    Likely because one of the servers (the incoming or outgoing) needs authentication before you can receive or send messages.
    Clinton

Maybe you are looking for

  • Panther to Leopard

    I've seen this topic discussed but haven't seen my particular problem. I can't get the computer to accept the Leopard DVD as it is ejected after a few moments. I have no clue what other problems I may run into but I would at least like to start the p

  • Checking cluster ocfs2 is offline,Starting cluster ocfs2: Failed

    Checking cluster ocfs2 is offline. And when I online the ocfs2 ,display the following error message,who can tell me what's wrong with the ocfs2? thanks!!!! # /etc/init.d/o2cb status Module "configfs": Loaded Filesystem "configfs": Mounted Module "ocf

  • How can I select count/sum/avg by sliding window ???

    Hi, Can you help me somebody? For example I have table with DateTime field. And now, I want to find which 1 hour interval contains maximum of records. Resolution is 1 minute. This mean that there is 1380 intervals in one day (00:00-01:00, 00:01-01:01

  • 802.1x failure

    Trying to connect to my works wireless network.  It uses 802.1x, I only need to supply my active directory username/pw, but when I do that I get a certificate failure.  iPhones and Droids are working and my laptop doesnt have an issue.  Anyone have a

  • Satellite Pro U200 - No sound after Windows 7 installation

    Hi, I'm having a problem with the sound after installing Windows 7 on a Satelite Pro U200 (PLUA1E). No Win7 sound driver found on the Nordic driver website. Please help. G.Magnason