I want to create a new memo with text in the body of an email and then send it using create replymessage in an autonated response. I thought getformattedtext would get the text only and ignore any attachments but when the memo is sent the attachments are still included. Can any of the java gurus set this notes admin. straight ? I pasted a snippet of the code below.
Document doc = agentContext.getDocumentContext();
Document reply = doc.createReplyMessage(false);
Document reply = doc.createReplyMessage(false);
reply.replaceItemValue(“Subject”,doc.getItemValue(“Subject”));
RichTextItem body = (RichTextItem)doc.getFirstItem(“Body”);
reply.replaceItemValue(“Body”,body.getFormattedText(false, 0, 0) +“\n”);