{"id":3275,"date":"2024-08-15T14:58:13","date_gmt":"2024-08-15T11:58:13","guid":{"rendered":"https:\/\/docs.unibell.tech\/?page_id=3275"},"modified":"2024-08-16T08:35:41","modified_gmt":"2024-08-16T05:35:41","slug":"google-sheets","status":"publish","type":"page","link":"https:\/\/docs.unibell.tech\/?page_id=3275","title":{"rendered":"Google Sheets"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-table_1.png\"><img decoding=\"async\" width=\"109\" height=\"86\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-table_1.png\" alt=\"\" class=\"wp-image-3429\"\/><\/a><\/figure>\n\n\n\n<p>This block is used to carry out operations with Google Sheets data.<\/p>\n\n\n\n<p>You can place this block at any part of your scenario and connect it sequentially. This way you can create a sequence of operations with one or several Google Sheets to get the needed results.<\/p>\n\n\n\n<p>For example, one block can assign a value to a cell and the following block can erase it. Or one block can take a value from a cell of one sheet and assign it to a cell of the other one.<\/p>\n\n\n\n<p>The block properties include response timeout settings, a drop-down list with connector selection (for more information, see <a href=\"https:\/\/docs.unibell.tech\/?page_id=3227#google_sheets\">Connectors<\/a>) and a list with a choice of operation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_6.png\"><img decoding=\"async\" width=\"266\" height=\"261\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_6.png\" alt=\"\" class=\"wp-image-3430\"\/><\/a><\/figure>\n\n\n\n<p>Each operation type has its own settings.<\/p>\n\n\n\n<h2 id=\"cell_value\" class=\"anchor\">Get cell\u2019s value<\/h2>\n\n\n\n<p>This operation extracts the cell\u2019s value and saves it to a variable. While choosing this operation you can specify the \u2018Target Column\u2019 (e.g. A), the \u2018Target line\u2019 (e.g. 1) and specify a variable this value will be saved to.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_7.png\"><img decoding=\"async\" width=\"267\" height=\"456\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_7.png\" alt=\"\" class=\"wp-image-3432\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_7.png 267w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_7-176x300.png 176w\" sizes=\"(max-width: 267px) 100vw, 267px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/google-shhets_8.png\"><img decoding=\"async\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/google-shhets_8-1024x576.png\" alt=\"\" class=\"wp-image-1609\"\/><\/a><\/figure>\n\n\n\n<p>Note that you can specify a target line by its number and by a variable. To set a variable, put a brace { in this field and choose a variable from the drop-down list or type it entirely {\u2026}.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_9.png\"><img decoding=\"async\" width=\"267\" height=\"431\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_9.png\" alt=\"\" class=\"wp-image-3433\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_9.png 267w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_9-186x300.png 186w\" sizes=\"(max-width: 267px) 100vw, 267px\" \/><\/a><\/figure>\n\n\n\n<h2 id=\"set_the_cell_value\" class=\"anchor\">Set cell\u2019s value<\/h2>\n\n\n\n<p>This operation assigns a value to the cell. Specify the \u2018Target Column\u2019 (e.g. A), the \u2018Target line\u2019 (e.g. 1) and the \u2018Value\u2019 (directly or using a variable\u2019s value).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_10.png\"><img decoding=\"async\" width=\"260\" height=\"419\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_10.png\" alt=\"\" class=\"wp-image-3434\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_10.png 260w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_10-186x300.png 186w\" sizes=\"(max-width: 260px) 100vw, 260px\" \/><\/a><\/figure>\n\n\n\n<p>Note that in the \u2018Value\u2019 field you can enter several variables or some text with one or several variables.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_11.png\"><img decoding=\"async\" width=\"265\" height=\"469\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_11.png\" alt=\"\" class=\"wp-image-3435\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_11.png 265w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_11-170x300.png 170w\" sizes=\"(max-width: 265px) 100vw, 265px\" \/><\/a><\/figure>\n\n\n\n<h2 id=\"clear_cell\" class=\"anchor\">Clean cell<\/h2>\n\n\n\n<p>This operation clears a cell. Specify the \u2018Target Column\u2019 (e.g. A) and the \u2018Target line\u2019 (e.g. 1).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_12.png\"><img decoding=\"async\" width=\"256\" height=\"366\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_12.png\" alt=\"\" class=\"wp-image-3436\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_12.png 256w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_12-210x300.png 210w\" sizes=\"(max-width: 256px) 100vw, 256px\" \/><\/a><\/figure>\n\n\n\n<h2 id=\"get_the_value\" class=\"anchor\">Get cell&#8217;s value with search<\/h2>\n\n\n\n<p>This operation saves a cell\u2019s value that is in the same row with a cell whose value we are searching for. Specify the \u2018Search the value in the column\u2019 (e.g. A), then in the \u2018Search Value\u2019 field enter a text of what you need to find or a variable which value is to be found. Specify the \u2018Target Column\u2019 (e.g. B) which has a cell with a value we need to find and save to a variable. In the \u2018Variable for the result\u2019 drop-down list choose a variable that will have the operation\u2019s result assigned to.<\/p>\n\n\n\n<p>For example, we need to assign to a variable a value of the cell from the B column that has a value \u2018Hello\u2019 in the same row of the A column.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/google-shhets_13.png\"><img decoding=\"async\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2023\/06\/google-shhets_13-1024x576.png\" alt=\"\" class=\"wp-image-1616\"\/><\/a><\/figure>\n\n\n\n<p>To do this first choose the needed settings in the \u2018Google Sheets\u2019 block. The system will find the \u2018Hello\u2019 value in the sheet and will assign a value 1 to the \u2018name\u2019 variable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_14.png\"><img decoding=\"async\" width=\"266\" height=\"519\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_14.png\" alt=\"\" class=\"wp-image-3437\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_14.png 266w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_14-154x300.png 154w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/a><\/figure>\n\n\n\n<p>You can also set a \u2018Desired value\u2019 with a variable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_15.png\"><img decoding=\"async\" width=\"263\" height=\"521\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_15.png\" alt=\"\" class=\"wp-image-3438\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_15.png 263w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_15-151x300.png 151w\" sizes=\"(max-width: 263px) 100vw, 263px\" \/><\/a><\/figure>\n\n\n\n<h2 id=\"set_the_value\" class=\"anchor\">Set cell&#8217;s value with search<\/h2>\n\n\n\n<p>This operation is similar to the \u2018Set cell\u2019s value with search\u2019 operation but its result is entered to a cell value that is assigned in the corresponding field or with a variable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_16.png\"><img decoding=\"async\" width=\"263\" height=\"539\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_16.png\" alt=\"\" class=\"wp-image-3439\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_16.png 263w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_16-146x300.png 146w\" sizes=\"(max-width: 263px) 100vw, 263px\" \/><\/a><\/figure>\n\n\n\n<h2 id=\"clear_cell_search\" class=\"anchor\">Clean cell with search<\/h2>\n\n\n\n<p>This operation is similar to the two previous ones. The result is to clear a cell\u2019s data.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_17.png\"><img decoding=\"async\" width=\"257\" height=\"468\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_17.png\" alt=\"\" class=\"wp-image-3440\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_17.png 257w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_17-165x300.png 165w\" sizes=\"(max-width: 257px) 100vw, 257px\" \/><\/a><\/figure>\n\n\n\n<h2 id=\"get_number_search\" class=\"anchor\">Get line&#8217;s number with search<\/h2>\n\n\n\n<p>This operation saves into a variable a number of the row that will have the \u2018Search value\u2019. You can enter the \u2018Search value\u2019 directly or with a variable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_18.png\"><img decoding=\"async\" width=\"261\" height=\"444\" src=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_18.png\" alt=\"\" class=\"wp-image-3441\" srcset=\"https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_18.png 261w, https:\/\/docs.unibell.tech\/wp-content\/uploads\/2024\/08\/google-shhets_18-176x300.png 176w\" sizes=\"(max-width: 261px) 100vw, 261px\" \/><\/a><\/figure>\n\n\n\n<h2 id=\"add_values_string\" class=\"anchor\">Add values as line<\/h2>\n\n\n\n<p>This operation fills the cells of the last empty row with the data specified in the \u2018Array of values\u2019 field. The array is in the JSON format.<\/p>\n\n\n\n<p>You can enter inside the brackets in quotes separated by commas the values that are assigned to the row\u2019s cells, for example, [\u201c111\u201d, \u201c222\u201d, \u201c333\u201d]. As a result the first row\u2019s cell will have \u201c111\u201d, the second one \u201c222\u201d and the third one \u201c333\u201d.<\/p>\n\n\n\n<p>Also you can use a variable in an array, for example, [\u201c111\u201d, \u201c{name}\u201d, \u201c333\u201d].<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2023\/07\/google-shhets_19.png\"><img decoding=\"async\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2023\/07\/google-shhets_19.png\" alt=\"\" class=\"wp-image-2270\"\/><\/a><\/figure>\n\n\n\n<p>Result:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2023\/07\/google-shhets_20.png\"><img decoding=\"async\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2023\/07\/google-shhets_20-1024x576.png\" alt=\"\" class=\"wp-image-2483\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This block is used to carry out operations with Google Sheets data. You can place this block at any part of your scenario and connect it sequentially. This way you can create a sequence of operations with one or several Google Sheets to get the needed results. For example, one block can assign a value <a href=\"https:\/\/docs.unibell.tech\/?page_id=3275\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  Google Sheets<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"tpl\/scenario-personal.php","meta":{"footnotes":""},"class_list":["post-3275","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/3275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3275"}],"version-history":[{"count":4,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/3275\/revisions"}],"predecessor-version":[{"id":3442,"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=\/wp\/v2\/pages\/3275\/revisions\/3442"}],"wp:attachment":[{"href":"https:\/\/docs.unibell.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}