Office.DecryptedMessageBody interface
Representa el cuerpo de un mensaje descifrado.
Comentarios
Nivel mínimo de permiso: elemento de lectura y escritura
Modo de Outlook aplicable: Lectura de mensajes
Para obtener información sobre cómo desarrollar un complemento de cifrado en Outlook, consulte Creación de un complemento de Cifrado de Outlook.
Usada por
Ejemplos
// This sample handles the OnMessageDecrypt event to decrypt the body and attachments of a message.
function onMessageDecryptHandler(event) {
// Your code to decrypt the contents of a message would appear here.
...
// Use the results from your decryption process to display the decrypted contents of the message body and attachments.
const decryptedBodyContent = "<p>Please find attached the recent report and its supporting documentation.</p>";
const decryptedBody = {
coercionType: Office.CoercionType.Html,
content: decryptedBodyContent
};
// Decrypted content and properties of a file attachment.
const decryptedPdfFile = "JVBERi0xLjQKJeLjz9MKNCAwIG9i...";
const pdfFileName = "Fabrikam_Report_202509";
// Decrypted properties of a cloud attachment.
const cloudFilePath = "https://contosostorage.com/reports/weekly_forecast.xlsx";
const cloudFileName = "weekly_forecast.xlsx";
// Decrypted content and properties of an inline image.
const decryptedImageFile = "iVBORw0KGgoAAAANSUhEUgAA...";
const imageFileName = "banner.png";
const imageContentId = "[email protected]";
const decryptedAttachments = [
{
attachmentType: Office.MailboxEnums.AttachmentType.File,
content: decryptedPdfFile,
isInline: false,
name: pdfFileName
},
{
attachmentType: Office.MailboxEnums.AttachmentType.Cloud,
isInline: false,
name: cloudFileName,
path: cloudFilePath
},
{
attachmentType: Office.MailboxEnums.AttachmentType.File,
content: decryptedImageFile,
contentId: imageContentId,
isInline: true,
name: imageFileName
}
];
event.completed(
{
allowEvent: true,
emailBody: decryptedBody,
attachments: decryptedAttachments,
contextData: { messageType: "ReplyFromDecryptedMessage" }
}
);
}
Propiedades
| coercion |
Especifica el formato del cuerpo de un mensaje. El cuerpo de un mensaje se puede dar formato o |
| content | Especifica el contenido que se muestra en el cuerpo del mensaje. |
Detalles de las propiedades
coercionType
Especifica el formato del cuerpo de un mensaje. El cuerpo de un mensaje se puede dar formato o Office.CoercionType.HtmlOffice.CoercionType.Text.
coercionType: Office.CoercionType;
Valor de propiedad
Comentarios
Nivel mínimo de permiso: elemento de lectura y escritura
Modo de Outlook aplicable: Lectura de mensajes
content
Especifica el contenido que se muestra en el cuerpo del mensaje.
content: string;
Valor de propiedad
string
Comentarios
Nivel mínimo de permiso: elemento de lectura y escritura
Modo de Outlook aplicable: Lectura de mensajes