{"id":32010,"date":"2025-01-14T14:35:11","date_gmt":"2025-01-14T05:35:11","guid":{"rendered":"https:\/\/docs.c-bot.pro\/?p=32010"},"modified":"2025-01-23T09:30:55","modified_gmt":"2025-01-23T00:30:55","slug":"google_sheets_add_data","status":"publish","type":"post","link":"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/google_sheets\/google_sheets_add_data\/","title":{"rendered":"Google Sheets \/ Add data row"},"content":{"rendered":"\n<p><a href=\"https:\/\/docs.c-bot.pro\/en\/\"><i class=\"fas fa-book\"> <\/i> &nbsp; Home<\/a> &gt; <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\">User guide<\/a> &gt; <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/\">BOT<\/a> &gt; <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/\">How to use the BOT editor<\/a> &gt; <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\">Extention<\/a>&gt; <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/google_sheets\">Google Sheets<\/a> &gt; Google Sheets \/ Add data row<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-full is-resized extension_icon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2024\/10\/icon_sheet.png\" alt=\"\" class=\"wp-image-31018\" width=\"75\" height=\"75\"\/><\/figure>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">App overview<\/h2>\n\n\n\n<p>Add a new data row to the Google Sheets.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>Extended Feature URL<\/td><td>cbot-extension:\/\/cloud-bot:google-sheets:add-data:1<\/td><\/tr><tr><td>Provider<\/td><td>Cloud BOT <span style=\"margin-left: 2px ; padding: 2px 7px; border:0px solid #000 ; background-color: #007bff ; border-radius: 5px ; color: #ffffff ; font-size: 0.7em;\" class=\"badge\">official<\/span><\/td><\/tr><tr><td>External communication<\/td><td>Yes<br>*This application communicates with&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/cloud.google.com\/?hl=en\" target=\"_blank\"><\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/cloud.google.com\/\" data-type=\"URL\" data-id=\"https:\/\/openai.com\/\" target=\"_blank\">Google Cloud<\/a>'s API.<\/td><\/tr><tr><td>Version<\/td><td>1<\/td><\/tr><tr><td>Transaction<\/td><td>Use a transaction for each execution.<br>2 transactions per execution<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">Preconfiguration<\/h2>\n\n\n\n<h3 id=\"outline__2_1\" class=\"wp-block-heading\">Google Cloud Settings<\/h3>\n\n\n\n<p>When using the Google Sheets extension, it is necessary to configure Google Cloud beforehand.<br>Please refer to the <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/google_cloud_settings\/\" target=\"_blank\">detailed instructions here<\/a> and complete the setup.<\/p>\n\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\">Screen description<\/h2>\n\n\n\n<h3 id=\"outline__3_1\" class=\"wp-block-heading\">Input screen<\/h3>\n\n\n\n<h4 id=\"outline__3_1_1\" class=\"wp-block-heading\">Step1<\/h4>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"723\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2025\/01\/img_gs_addrow_input_en-1024x723.png\" alt=\"\" class=\"wp-image-32029\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong>Authentication method<\/strong><\/p>\n\n\n\n<p class=\"extension_guide_body\">Select the authentication method.<\/p>\n\n\n\n<p>Service Account: Authenticate using a Google Cloud service account.<\/p>\n\n\n\n<p><strong>Authentication type<\/strong><\/p>\n\n\n\n<p>Specify the authentication type.<\/p>\n\n\n\n<p>Reference the authentication info from a file: Authenticate using a JSON file.<br>Enter the authentication info in JSON format: Authenticate by entering credentials in JSON format.<\/p>\n\n\n\n<p class=\"extension_detail_item_body\"><small> * For authentication information, please refer to <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/google_cloud_settings\/\" target=\"_blank\" rel=\"noopener noreferrer\">this<\/a>.<\/small><\/p>\n\n\n\n<p><strong>Authentication file<\/strong><\/p>\n\n\n\n<p>This is displayed when you select 'Reference the authentication info from a file' as the authentication type.<br>Specify the JSON file.<\/p>\n\n\n\n<p><strong>Authentication text (JSON format)<\/strong><\/p>\n\n\n\n<p>This is displayed when you select 'Enter the authentication info in JSON format' as the authentication type.<br>Enter the JSON text.<\/p>\n\n\n\n<p><strong>Spreadsheet URL<\/strong><\/p>\n\n\n\n<p>Specify the URL of the spreadsheet to be edited.<\/p>\n<\/div>\n<\/div>\n\n\n\n<h4 id=\"outline__3_1_2\" class=\"wp-block-heading\">Step2<\/h4>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"898\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2025\/01\/img_gs_addrow_edit_1_en-1024x898.png\" alt=\"\" class=\"wp-image-32030\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong><strong>Sheet name<\/strong><\/strong><\/p>\n\n\n\n<p class=\"extension_guide_body\">Select the sheet to add a data row to.<\/p>\n\n\n\n<p><strong><strong>Targeted table position or range (optional)<\/strong><\/strong><\/p>\n\n\n\n<p class=\"extension_guide_body\">This option allows you to specify a range of cells to target. If not specified, the target is the entire sheet selected as <strong>[Sheet Name]<\/strong>. Refer to <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/target_table\/\" data-type=\"URL\" data-id=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/target_table\/\">this page<\/a> about a targeted table position or range.<\/p>\n\n\n\n<p class=\"extension_guide_body\"><small>*Notes on the input range for the target table can be found <a href=\"#outline__3_3\">here<\/a>.<\/small><\/p>\n\n\n\n<p><strong>Header row<\/strong><\/p>\n\n\n\n<p class=\"extension_guide_body\">Specify the header row. Refer to <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/about_input_fields\/#outline__1\" data-type=\"URL\" data-id=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/header\/\">this page<\/a> about a header row.<\/p>\n\n\n\n<p class=\"extension_guide_body\"><span style=\"color:#0693e3\" class=\"tadv-color\"><small>* Leave blank if the header row is not necessary. An alphabet is assigned automatically for a column name.<\/small><\/span><\/p>\n\n\n\n<p><strong>Number of rows to add<\/strong><\/p>\n\n\n\n<p class=\"extension_detail_item_body\">Specify a number of rows added to the file.<\/p>\n\n\n\n<p><strong>Specify column order (Optional)<\/strong><\/p>\n\n\n\n<p class=\"extension_detail_item_body\">If you want to limit rows to input, specify the column name. The column with no data become blank. You can increase or decrease columns to be displayed by pressing the Add \/ Delete buttons.<\/p>\n\n\n\n<p class=\"extension_guide_body\"><span style=\"color:#0693e3\" class=\"tadv-color\"><small>* If multiple columns have the same name, they are displayed in order from left column to right.<br>\n* If not specified, all columns are displayed.<\/small><\/span><\/p>\n<\/div>\n<\/div>\n\n\n\n<h4 id=\"outline__3_1_3\" class=\"wp-block-heading\">Step3<\/h4>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"706\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2025\/01\/img_gs_addrow_edit_2_en-1024x706.png\" alt=\"\" class=\"wp-image-32031\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong>The target table range<\/strong><\/p>\n\n\n\n<p class=\"extension_detail_item_body\">The target table range is displayed.<\/p>\n\n\n\n<p><strong>Data<\/strong><\/p>\n\n\n\n<p class=\"extension_detail_item_body\">Input data to add. You can increase or decrease data rows by pressing the Add \/ Delete buttons.<\/p>\n\n\n\n<p class=\"extension_guide_body\"><span style=\"color:#0693e3\" class=\"tadv-color\"><small>* [Link elements and rows] function is useful to paste group data.<\/small><\/span><\/p>\n\n\n\n<p><strong><strong>Input format<\/strong><\/strong><\/p>\n\n\n\n<p class=\"extension_detail_item_body\">Specify the input format.<\/p>\n\n\n\n<p>Enter as is: Values will be entered exactly as the user inputs them. Values starting with '=' will not be evaluated as formulas.<br>Enter as a formula: Values will be parsed in the same way as if entered through the spreadsheet's UI. If you input a formula starting with '=', it will be evaluated as a formula.<\/p>\n<\/div>\n<\/div>\n\n\n\n<h3 id=\"outline__3_2\" class=\"wp-block-heading\">Result Screen<\/h3>\n\n\n\n<h4 id=\"outline__3_2_1\" class=\"wp-block-heading\">Edited data<\/h4>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"529\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2025\/01\/img_gs_addrow_comp_en-1024x529.png\" alt=\"\" class=\"wp-image-32032\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"extension_guide_body\">The results will be displayed.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"extension_guide_body\"><strong>The number of succeeded added data rows<\/strong><\/p>\n\n\n\n<p class=\"extension_detail_item_body\">The number of successfully added data rows is displayed.<\/p>\n\n\n\n<p><strong>The number of failed added data rows<\/strong><\/p>\n\n\n\n<p class=\"extension_detail_item_body\">The number of data rows which were failed to add is displayed. Refer to <a href=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/row_add_failure\/\" data-type=\"URL\" data-id=\"https:\/\/docs.c-bot.pro\/en\/user_guide\/bot\/b-bot_editer\/extension\/row_add_failure\/\">this page<\/a> for example of failing to add.<\/p>\n<\/div>\n<\/div>\n\n\n\n<h3 id=\"outline__3_3\" class=\"wp-block-heading\">Notes on the Target Table<\/h3>\n\n\n\n<p>Depending on the input status of the Google Sheets, data rows may be added in unintended locations.<\/p>\n\n\n\n<p>When adding data rows, the existing data in the spreadsheet is searched to recognize the 'table' within the specified input range.<br>A 'table' refers to a collection of adjacent cells containing values.<br>Data is added based on the first column of the lowest table within the specified input range.<\/p>\n\n\n\n<p>Let's take the following as an example.<br>This sheet has two tables, A1:C2 and B4:D6.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"454\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2025\/01\/img_gs_addrow_note_en-1-1024x454.png\" alt=\"\" class=\"wp-image-32035\"\/><\/figure>\n\n\n\n<p><strong>In the following case, row addition starts from B7.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If the target table position or range sheet is not specified (since Table :2 is the last table).<\/li>\n\n\n\n<li>If B4 or C5:D5 is specified (as both are within Table:2).<\/li>\n\n\n\n<li>If B2:D4 is specified (since the last table within the range is Table:2).<\/li>\n\n\n\n<li>If A3:G10 is specified (since the last table within the range is Table:2).<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>In the following cases, row addition starts correctly.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If A1 is specified, writing starts from A3 (since it is within Table:1).<\/li>\n\n\n\n<li>If E4 is specified, writing starts from E4 (since it is not within any table).<\/li>\n\n\n\n<li>If A4 is specified, writing starts from A4 (since it is not within any table).<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Home &gt; User guide &gt; BOT &gt; How to use the BOT editor &gt; Extention&gt; Google Sheets &gt; Google Sheets \/ Add data row App overview Add a new data row to the Google Sheets. Extended Feature URL cbot-extension:\/\/cloud-bot:google-sheets:add-data:1 Provider Cloud BOT official External communication Yes*This application communicates with&nbsp;Google Cloud's API. Version 1 Transaction Use a transaction for each execution.2 transactions per execution Preconfiguration Google Cloud Settings When using the Google Sheets extension, it is necessary to configure Google Cloud beforehand.Please refer to the detailed instructions here and complete the setup. Screen description Input screen Step1 Authentication method Select the authentication method. Service Account: Authenticate using a Google Cloud service account. Authentication type Specify the authentication type. Reference the authentication info from a file: Authenticate using a JSON file.Enter the authentication info in JSON format: Authenticate by entering credentials in JSON format. * For authentication information, please refer to this. Authentication file This is displayed when you select 'Reference the authentication info from a file' as the authentication type.Specify the JSON file. Authentication text (JSON format) This is displayed when you select 'Enter the authentication info in JSON format' as the authentication type.Enter the JSON text. Spreadsheet URL Specify [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_locale":"en_US","_original_post":"https:\/\/docs.c-bot.pro\/?p=31972","footnotes":""},"categories":[127],"tags":[],"class_list":["post-32010","post","type-post","status-publish","format-standard","hentry","category-google_sheets","en-US"],"_links":{"self":[{"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts\/32010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/comments?post=32010"}],"version-history":[{"count":3,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts\/32010\/revisions"}],"predecessor-version":[{"id":32037,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts\/32010\/revisions\/32037"}],"wp:attachment":[{"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/media?parent=32010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/categories?post=32010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/tags?post=32010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}