Outlook Web Add-ins embed document and update properties

Venkatraman, Sabaresh 1 Reputation point
2020-09-22T01:36:39.61+00:00

I have created an add-in in word to retrieve data from base64(.docx) and inserted the data.

const body = context.document.body;
body.insertFileFromBase64(templateBase64, Word.InsertLocation.replace);

Also, added the properties using

customProperties.forEach(c => {
  if (c.key)
    context.document.properties.customProperties.add(c.key, c.value || ' ');
});

May I know how to do the same for outlook? I don't want to attach the document to outlook, I want to insert the document text into body and update the properties.

Thanks

Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,064 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JeffYang-MSFT 6,241 Reputation points Microsoft Vendor
    2020-09-22T08:36:20.25+00:00

    Hi @Venkatraman, Sabaresh ,

    May I know how to do the same for outlook? I want to insert the document text into body and update the properties.

    I did some search about inserting the document text into Outlook message body and found some information related to it. Please check the methods in this article: Insert data in the body when composing an appointment or message in Outlook and see if the asynchronous methods and other information in it could be helpful to you or if they can give you some inspiration.

    If those information could not help or you still need more specific help, since here we mainly focus on general issues about Outlook desktop client and know little about Outlook for developer. To better solve your issue, it is suggested to post a new thread in the dedicated Outlook Developer forum over here.

    Hope this could help.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.