Skip to content

FileOrigin

Where the open workbook came from. Kept by the editor, handed back on save, never written to the file.

Property Type Description
location? string Where the file is, such as “Shared/Finance/prices.xlsx”, shown when the pointer rests on its name.
name string Shown as the file’s name.
ref JsonValue The source’s own identity for the file, such as a drive and item id. Plain JSON.
source string The id of the FileSource it came from.
version? string Its version as opened (an ETag, a revision id), for telling a stale save.
writable? boolean False when saving back isn’t possible or wise; only “Save a copy” is offered then.