You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Saves a copy of the current workbook in OneDrive, in the same directory as the original file, with the specified file name.
4
4
* The API has a timeout limit of 30 seconds. This limit is rarely exceeded.
5
5
* Note: Timeout doesn't necessarily indicate that the API failed. The workbook copy may still be created, but after the timeout limit this API does not return a success or failure message.
6
-
* @throws ExternalApiTimeout The error thrown if the API reaches the timeout limit of 30 seconds. Note that the copy may still be created.
7
-
* @throws InvalidExtensionError The error thrown if the file name doesn't end with ".xlsx".
8
-
* @throws SaveCopyAsFileMayAlreadyExistError The error thrown if the file name of the copy already exists.
9
-
* @throws SaveCopyAsFileNotOnOneDriveError The error thrown if the document is not saved to OneDrive.
6
+
7
+
* **Throws**: `ExternalApiTimeout` The error thrown if the API reaches the timeout limit of 30 seconds. Note that the copy may still be created.
8
+
9
+
* **Throws**: `InvalidExtensionError` The error thrown if the file name doesn't end with ".xlsx".
10
+
11
+
* **Throws**: `SaveCopyAsFileMayAlreadyExistError` The error thrown if the file name of the copy already exists.
12
+
13
+
* **Throws**: `SaveCopyAsFileNotOnOneDriveError` The error thrown if the document is not saved to OneDrive.
10
14
* @param filename - The file name of the copied and saved file. The file name must end with ".xlsx".
0 commit comments