Office.MailboxEnums.SourceProperty enum

Especifica el origen de los datos seleccionados en un elemento (consulte Office.mailbox.item.getSelectedDataAsync para obtener más información).

Comentarios

[ Conjunto de API: Buzón 1.2 ]

Modo de Outlook aplicable: Redacción

Ejemplos

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/20-item-body/get-selected-data.yaml

Office.context.mailbox.item.getSelectedDataAsync(Office.CoercionType.Text, function(asyncResult) {
  if (asyncResult.status === Office.AsyncResultStatus.Succeeded) {
    const text = asyncResult.value.data;
    const prop = asyncResult.value.sourceProperty;
    console.log("Selected text in " + prop + ": " + text);
  } else {
    console.error(asyncResult.error);
  }
});

Campos

Body = "body"

El origen de los datos es del cuerpo del elemento.

Subject = "subject"

El origen de los datos procede del sujeto del elemento.