I am trying to get Data Type (Body Format) of Mail,Calendar e.t.c. Body.
Getting Body content as:
String Body = (string)((object[])docInbox.GetItemValue("Body"))[0];
or
String Body = docInbox.GetFirstItem("Body").Text;
I tried it using:
String bodyFormat = ((object[])docInbox.GetItemValue("Body"))[0].GetType().ToString();
But in this case i am getting “System.String” value.But actually it is : “Rich Text”.
If you are trying to get the Notes data type of the “Body” item, you can use the Type property of the NotesItem class. For example:
RichText is 1, Text is 1280, Numeric is 768, etc. Domino Designer Help has the full list of values.
EDIT: You can find the full list of Type values here: