Search code examples
office365office-jsoutlook-web-addinsoutlook-restapi

how to reset RoamingSettings Key when outlook web addin is removed


i am trying to build outlook web addin - mailapp (task pane ) so to perform my required operations i need to keep some data in roamingSettings like below

Office.context.roamingSettings.set(key, value); 
  Office.context.roamingSettings.saveAsync((result) => {
  // result:
  if (result.error) {
    
  // console.log(result.error.message);
 }

since this is mailbox app, i would required this data when next time user opens up my addin but the issue i am facing is when user would uninstall/Removes this Web addin i need to clear key value pair whatever was set in roamingSettings and for removing key value i know the code which is roamingSettings.remove and saveasync but i dont know how to do this when addin is being removed. Pls Help!!


Solution

  • Currently the feature of clearing roaming settings on uninstall of an add-in, you requested, is not a part of the product. We track Outlook add-in feature requests on our user-voice page. Please add your request there. Feature requests on user-voice are considered, when we go through our planning process