Outlook with TypeScript SSO

You can use the Yeoman Generator to create an Outlook Add-in project using VS Code with TypeScript
The link above displays these three files:

package.json 
manifest.xml
webpack.config.json

This page displays all the other files in this project:


function writeDataToOutlook(result) { 
  let data = [];
  let userProfileInfo = filterUserProfileInfo(result);

  for (let i = 0; i < userProfileInfo.length; i++) {
    if (userProfileInfo[i] !== null) {
      data.push(userProfileInfo[i]);
    }
  }

  let userInfo = "";
  for (let i = 0; i < data.length; i++) {
    userInfo += data[i] + "\n";
  }

  Office.context.mailbox.item.body.setSelectedDataAsync(userInfo, { coercionType: Office.CoercionType.Html });
}




© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrev