OfficeRuntime.Storage: Where is the data actually stored on Excel Desktop & Web?

ltrcx 6 Reputation points
2022-01-27T20:54:36.627+00:00

Hello, I have an excel add-in that has some custom functions (functions.html, functions.js...) and a task pane. It's not using the shared runtime. Task pane has some html inputs to get credentials from the user. These credentials are stored with OfficeRuntime.storage. Then these are accessed within the custom functions to make an API call.

The data is shared with the OfficeRuntime.storage between task pane and the custom functions.

I read the documentation but there is not much detail about where the data is stored. I've investigated the web version and I see that the data created with OfficeRuntime.storage is actually stored in local storage. I wonder where exactly the data is stored on Excel Desktop.

Is it saved in user's computer where the Excel is running? Is is possible to access these credentials from another add-in running on the same computer? I want to make sure that the data I stored with OfficeRuntime.storage is isolated from other users and other add-ins.

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
982 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,914 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ltrcx 6 Reputation points
    2022-02-07T08:14:11.633+00:00

    Official answer:

    Yes. For add-in on Excel online, the data created with OfficeRuntime.storage is stored in local storage.
    For add-in on Excel Desktop, each add-in has an independent sandbox that guaranteed the runtime(and the data) of one add-in is isolated from other add-ins. The data stored with OfficeRuntime.storage is stored in the corresponding local storage.

    Here is another documentation about OfficeRuntime.storage for reference.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.