How to store email content as a document variable?

Hi there,
I have a question where I need to store the content of an email-service into a txt-file. I guess I should somehow put it in an document variable, how can this be done?
Thanks in advance
Sincerely
Kim

Kim
I would suggest one of the following two methods:
1) Prior to sending the email with the SendEmail service, build the email contents via SetValues and using String process variables. Have one String for the subject (i.e. sSubject) and one for the body (i.e. sBody) and build your content appropriately. You can use multiple SetValues or you could do it all in one. After your email's body is done being built, use a SetValue to set it to a Document variable (i.e. docBody = sBody). You can then use this Document variable as the input to your SendEmail service's body parameter. What you have then is a Document containing all the content of the email's body that you can now write to the filesystem, archive to a repository or do whatever you'd like with. Please note that if you are using HTML formatting for the email's body that your Document variable will literally have the HTML code in it. This means that if you, say, archived the Document to the file system as a .txt and then opened it, you would see all the content but it would have all the HTML code with it. To get around this, you might consider archiving the email contents as a .htm or .html file. This will cause the file to open in the system's default browser for viewing but it will also only display the actual content formatted per your HTML code.
One other thing to note is that if you wanted the subject to be part of the archived file's contents as well, you could simply do a String concatenate of the body String (sBody) to the subject String (sSubject).
2) If the emails you are sending go to the same email box(es) each time, you might consider building a second orchestration that uses an Email endpoint to watch the box(es). With this, you could monitor those inboxes and handle incoming messages appropriately.
Please do let me know if you have any questions.
Josh Boyle
[email protected]
Cardinal Solutions Group

Similar Messages

  • How do you email contents of favorites folder without having to copy and paste each item in the folder individually?

    how do you email contents of favorites folder without having to copy and paste each item in the folder individually?

    Zip (compress) the folder before you send it.

  • How to store the contents of a file

    Hi,
    I'm using forms6i and database 10g.
    Through forms if a user selects a filename , and clicks a button or something,
    the contents of the file should be saved in the database.
    The file can be of any type, like .doc,.pdf,.xml,.html etc...
    and the contents filed will be of type varchar
    Please help me do this..
    Thanks

    Do you really want to save the "Content" of a file or the file itself? If you try to save the contents of a .doc or .pdf in a column with a VARCHAR2 datatype, you are going to corrupt the contents of the file since these file types have binary data in them as well as text. I think you would have greater success storing the actual file in a BLOB column.
    Here are a few Oracle Support documents that discuss how to store and retrieve files stored as BLOBs in the database.
    Doc ID: 168277.1 - How to Upload Binary Documents Back to Database BLOB Column from Forms
    Doc ID: 330146.1 - How to write BLOBs Stored Inside the Database Out to Files.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to display the contents of a document set on a page?

    I want to display the contents of a document set (that contains both folders and files) on a page (with the same structure as they are in the document set like folders and files). How to achieve this?
    I tried content search webpart but it is of no use as it displays the flat list instead I need folders and files as they are present in the document set
    I tried document set contents webpart but as it doesn't accept any connection, it is not of much use.
    I will be glad if you have any pointers for me in this regard.
    Regards
    Kesava

    Hi Kesava,
    According to your description, you might want to display the content in a document set with its hierarchy.
    How about using
    Page Viewer Web Part to display the page of the corresponding document set? This would be a non-code solution I would recommend.
    More information about Page Viewer Web Part:
    https://support.office.com/en-nz/article/Page-Viewer-Web-Part-e364436c-0ec4-4819-acac-1982b3525531
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • How can I email a pages 08 document that doesn't have to be opened  as an attachment by the recipient??   PS- I am using at&t mail.

    How can I email a document created on Pages '08 that doesn't have to be opened as an attachment by
    the recipients????
    (I am using AT&T email)

    "when I try save to PDF it just wants to save it to a file?"
    Correct. The difference between "Mail PDF" and "Save PDF" is that the first opens a new Mail message with the file attached. the second saves a file which you may attach to an email message.
    "Terrainathome is a good example of what I am trying to do."
    Not familiar with Terrainathome, but my guess is that the company is sending an email message containing HTML code that downloads what's essentially a web page into the displayed message. To do that, you'll need a website, software that will produce the necessary HTML code, and recipients with email clients capable of interpreting HTML (which is 'most email clients' these days).
    Regards,
    Barry

  • How to store webpage content into sqlserver

    HI All,
    I would like to thank all guys who are helping here.
    I need some help I will be very happy if guys can help me I am sure you will helping as the question which I am about to ask is nothing to the seniors here. My query goes here...
    I have a page called www dot abc dot com and there is some content in that page now I want to store this content in an
    sqlserver.
    I heard that it can be achieved using DOM can you guys help in this. If not in DOM please suggest me the possible ways.
    Bunch of thanks in advance.Please help me ASAP as it is very urgent to my project.
    Sowmya

    997387 wrote:
    HI All,
    I would like to thank all guys who are helping here.
    I need some help I will be very happy if guys can help me I am sure you will helping as the question which I am about to ask is nothing to the seniors here. My query goes here...
    I have a page called www dot abc dot com and there is some content in that page now I want to store this content in an
    sqlserver.
    I heard that it can be achieved using DOM can you guys help in this. If not in DOM please suggest me the possible ways.
    You CANNOT store "www dot abc dot com " any where because that is a site, not data.
    So FIRST you must first get the data from that site. How you do that depends on the site and the data you want. This might be a trivial step or in might be very, very complicated. This step has nothing to do with storing anything.
    If the sight is VERY simple or you have NO need to store images then you might end up with a single html string which can be stored. However that is very unlikely. If not then you must retrieve all of the different parts from the site, and determine how you want to store those parts. A simple mechanism would be to store the tree (because an extracted html site is going to be representable that way.)
    SECOND then you determine how you want to store it. Unless the page is very simple or you extract almost nothing from the page then you would need to either create an significant data structure in the database or you would need to store the entire tree as a blob. Doing that requires that you convert the tree into a single binary format and then store it. You can google for example for storing retrieving blobs.
    Finally you presumably have researched exactly what your legal right is to download the contents of that site and store it. Even if you own the site there might be limitations on the content (such as picitures) that disallow you from storing it.

  • Need script to transfer email content to word document

    Looking for a script to transfer email content into a word document.

    Make sure that you have selected "Web Page, complete" to save the page.

  • How to store the content of text_edit in the BSP page to infotype

    Hi experts,
    I created a bsp page with a text_edit which is for every one that read the page to leave comments...
    I tried to store the content of the text_edit to infotype, but failed, I noticed that there is a class named CL_HRRCF_INFOTYPE, has method named read_text and update_text.
    I think maybe these methods could help me fulfill the requirement,
    I've debug the standard program many times(the standard infotype 5130 used the class CL_HRRCF_INFOTYPE and the methods to store descriptions into infotype.)but still can not figure out how the standard complete the process..
    Please help me with this...
    Thank you!!

    So the issue is not with BSP but to find the appropriate method/FM for updating the text. you will get a quicker response in ABAP forum and moving your thread to ABAP forum.
    Regards
    Raja

  • How to store the contents of a text file directly in to a clob field

    Hi All,
    Could anyone help me to store the contents of a text file (*.txt,*.xml etc)directly in to a clob field.
    Thanks in advance
    Jayaram.

    One way is to use sqlloader. Three files are used. A control file, an xml data file, and a file with the path of the xml data file. Here's the control file. It reads load.file, which is the file with the path of the xml data file. It names the path ext_path, and inserts the xml into field xml_field.
    CONTENTS OF CONTROL FILE:
    load DATA
    INFILE 'load.file'
    APPEND
    INTO TABLE xml_table
    ( ext_path FILLER CHAR(13),
    "XML_FIELD" LOBFILE(ext_fname) TERMINATED BY EOF
    CONTENTS OF FILE LOAD.FILE:
    /tmp/load.dat
    The xml is in the file /tmp/load.dat.
    null

  • How to store file content in database??????

    how to store file in database and retrived

    How to use Google to search for answers to questions that have been asked literally thousands of times previously??????
    How to post into the correct forum???????
    How to use less punctuation??????

  • How to store resultset value to  Some other variable

    ResultSet rset1=stmt1.executeQuery("SELECT count(*) FROM
    user_details_table" );
    while(rset1.next())
    System.out.println("No.of Connected Users In UserDetails Table: " + rset1.getInt(1));
    int x=rset1.getInt(1);
    to store tht resultset value into integer variable.Bt tht statement is giving error. Pls help me.
    Thanks....

    try
    ResultSet rset1=stmt1.executeQuery("SELECT count(*) FROM
    user_details_table" );
    while(rset1.next())
    int x=rset1.getInt(1);
    System.out.println("No.of Connected Users In UserDetails Table: " + x);
    }

  • How to store xdofx:sysdate() output, in a variable?

    Hi,
    I am developing a template in which I have to show only current year data. I am using xdofx:sysdate() to get system date but I am unable to store this date data in a variable and compare it with xml data.(We cannot mix xdofx statements with XSL expressions in the same context.)
    Is there any way to solve this problem?

    Hi,
    See : http://blogs.oracle.com/xmlpublisher/2008/09/date_functions.html
    Regards,
    Colectionaru

  • How to store file content in BLOB field MySql database using java

    Hi!
    i want to store the file content in a BLOB field in MySql database using java.
    Please help me out..........
    thanx in advance...
    bye

    i stored images in db, and retrieved them. like that cant i store pdf file in db, and retrieve it back using oracle db?
    Plz help me out how to put a file in db. i need complete code. thanks in advance.

  • How to search text content of scanned Documents in DMS

    hello,
    i need to scan the legacy document and put it in to DMS.
    After that i want to search the scanned document using the Trex search.
    I want to know how to achive it as scaaed document are as like images and we can not search the text in images.
    Any helpfull ideas are welcome..
    regards
    shiv

    Hi Alfredo,
    Thanks for reply..Will you please explain in brief what are the  OCR program and workflow.
    Will you please send me any docs on [email protected]
    Thanks
    shiv.

  • How to store movie contents while keeping same music library

    Pretty much what i wanna do is that to save music in my computer but keep my movie contents in external hard drive. How do i do this?
    Thanks in advance

    Put the movies on the external drive.  Hold down the option key while dragging them to an iTunes window which will leave the files where you put them. Of course the movies will show as broken links iif you do not have the external turned on when starting iTunes, but the links will repair themselves if you turn on the drive and restart iTunes.
    My preferred method is to make a separate library for movies and store this on the external drive.  To do that, start iTunes with the option key held down.

Maybe you are looking for

  • Creative Cloud installer downloads but will not run

    I have downloaded and re-downloaded the Creative Cloud installer but when i click on the download to run it my computer (Sony Vaio windows 8) acts like its trying to but nothing ever happens. Specs: Sony Vaio Intel core i7 windows 8.0 (have not updat

  • [SOLVED] netctl not bringing up my network at boot

    I recently converted from netcfg to netctl and but my network is not coming up ever at boot time. Once the machine is booted I can bring it up manually using netcfg start ethernet-static It is obviously an static IP address and I copied the netctl sa

  • Invoking a class using a string name

    I have a class called GPSSinglePoint If I have the following String object... String myClass = "GPSSinglePoint"; how do I instantiate the class? BTW, can I instantiate GPSSInglePoint as a thread if it implements Runnable? Thank you in advance. Edited

  • IMac CRT Help please!

    I was using my iMac just last night when suddenly it losta ll of my files can anybody identyfy my problem i really need to get them back please help thank you

  • Download site from server?

    I have recently started updating my company's website. I would like to use iWeb as an FTP client. I have the connection set up, but I do not have the website files on my computer. The site was originally managed through GoDaddy, and the previous webm