1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-23 02:06:12 +02:00
OpenIntegrations/docs/en/md/Google_Sheets/Sheet-work/Copy-sheet.md
2024-06-05 13:35:05 +03:00

1.2 KiB

sidebar_position
3

CopySheet

Copies a sheet from one book to another

Function CopySheet(Val Token, Val From, Val Target, Val Sheet) Export

Parameter CLI option Type Destination
Token --token String Token
From --from String SourceBookID
Target --to String DestinationBookID
Sheet --sheet String CopiedSheetID

Returns: Key-Value Pair - serialized JSON response from Google

	
 
 From = "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc";
 Target = "1tPDQHmduH9NASRhy0I-a6--ebNNJ5A6wXhhTRcNhD7s";
 Sheet = "25093199";
 
 Response = OPI_GoogleSheets.CopySheet(Token, From, Target, Sheet); //Map
 Response = OPI_Tools.JSONString(Response); //JSON string
 
 
	
 
 oint gsheets CopySheet --token %token% --from "1Pu07Y5UiGVfW4fqfP7tcSQtdSX_2wdm2Ih23zlxJJwc" --to "1tPDQHmduH9NASRhy0I-a6--ebNNJ5A6wXhhTRcNhD7s" --sheet "25093199"



{
 "sheetId": 1790807910,
 "title": "Sheet2 (copy)",
 "index": 2,
 "sheetType": "GRID",
 "gridProperties": {
 "rowCount": 1000,
 "columnCount": 26
 }
 }