{"id":17309,"date":"2023-01-18T19:44:00","date_gmt":"2023-01-18T10:44:00","guid":{"rendered":"https:\/\/docs.c-bot.pro\/?p=17309"},"modified":"2023-09-02T11:05:57","modified_gmt":"2023-09-02T02:05:57","slug":"powerautomate_use_case_06","status":"publish","type":"post","link":"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_use_case_06\/","title":{"rendered":"Run a BOT using the list data acquired from the spreadsheet as the input value (group data) for BOT"},"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\/connect\/\">Connect<\/a> &gt; <a href=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\">Power Automate<\/a> &gt; Run a BOT using the list data acquired from the spreadsheet as the input value (group data) for BOT<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">Creating a flow<\/h2>\n\n\n\n<p>Create a flow that executes the list data obtained from the spreadsheet as the BOT input value (group data).<\/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\"><img loading=\"lazy\" decoding=\"async\" width=\"1310\" height=\"384\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/01\/powerautomate_use_case_image06-1-1.png\" alt=\"\" class=\"wp-image-16995\"\/><\/figure>\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<p><strong>Schedule (Recurrence)<\/strong><br>Generate a trigger at specified time.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong><strong><strong>Google Sheets\uff08<\/strong><\/strong>Get multiple rows\uff09<strong><br><\/strong><\/strong>Get multiple rows of data in the spreadsheet.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong>Control\uff08Apply to each\uff09<br><\/strong>The following actions are executed sequentially for the number of rows of group data acquired by \"Get multiple rows\".<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong><strong>Cloud BOT\uff08<\/strong>Execute BOT<strong>\uff09<\/strong><br><\/strong>Execute BOT with the array output by the control as the input value (group data).<\/p>\n<\/div>\n<\/div>\n\n\n\n<h3 id=\"outline__1_1\" class=\"wp-block-heading\">Setting a Schedule<\/h3>\n\n\n\n<p>1. Click \"Create\" from the navigation menu on the left side of the screen and select \"Automated Cloudflow\".<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"752\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/05\/po_07.png\" alt=\"\" class=\"wp-image-21220\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2. Although a modal window of \"Build an automated cloud flow\" will be displayed, press the \"Skip\" button.\"<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1441\" height=\"753\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/05\/po_ex1_02.png\" alt=\"\" class=\"wp-image-21221\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>3. Search for \"Schedule\" in the built-in tab and select \"Recurrence\".<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_01.jpg\" alt=\"\" class=\"wp-image-23009\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>4. Set \"Interval\" and \"Frequency\".<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_02.jpg\" alt=\"\" class=\"wp-image-23011\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"outline__1_2\" class=\"wp-block-heading\">Setting Google sheets<\/h3>\n\n\n\n<p>1.Select \"New Step\".<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_03.jpg\" alt=\"\" class=\"wp-image-23012\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2. Search for \"Google Sheets\", click the icon and select \"Get Rows\".<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_04.jpg\" alt=\"\" class=\"wp-image-23013\"\/><\/figure>\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\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_05.jpg\" alt=\"\" class=\"wp-image-23014\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>3. Set the action. Set \"File\" and \"Worksheet\".<\/p>\n\n\n\n<p><small>*Create a connection if it doesn't exist.<\/small><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_06.jpg\" alt=\"\" class=\"wp-image-23015\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>You can check the output value by performing \"Test\" on the upper right after setting.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_07.jpg\" alt=\"\" class=\"wp-image-23016\"\/><\/figure>\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\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_08.jpg\" alt=\"\" class=\"wp-image-23018\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"outline__1_3\" class=\"wp-block-heading\">Setting control<\/h3>\n\n\n\n<p>In order to execute the list data obtained from Google Sheets as the BOT input value (group data), it is necessary to format the list data into the text format of the group.<br>Create an empty array and add Google Sheets records to the array in a sequential run. Finally, format the group into a suitable text format.<\/p>\n\n\n\n<p>Create a flow as follows.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_use_case_06\/#outline__1_3_1\" data-type=\"URL\" data-id=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_use_case_06\/#outline__1_3_1\"><strong>Create an empty array<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_use_case_06\/#outline__1_3_2\" data-type=\"URL\" data-id=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_use_case_06\/#outline__1_3_2\"><strong>Set up sequential execution<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_use_case_06\/#outline__1_3_3\" data-type=\"URL\" data-id=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_use_case_06\/#outline__1_3_3\"><strong>Add records to array<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_use_case_06\/#outline__1_3_4\" data-type=\"URL\" data-id=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_use_case_06\/#outline__1_3_4\"><strong>Join arrays and format text<\/strong><\/a><\/li>\n<\/ul>\n\n\n\n<h4 id=\"outline__1_3_1\" class=\"wp-block-heading\">Create an empty array<\/h4>\n\n\n\n<p>1. Select \"New Step\".<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_09.jpg\" alt=\"\" class=\"wp-image-23019\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2.Search for \"Initialize variable\", click the icon and select \"Initialize variable\".<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_15.jpg\" alt=\"\" class=\"wp-image-23024\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>3. Specify \"Name\" and \"Type\".<\/p>\n\n\n\n<p>Initialize variables for the number of target columns that you want to set to the action. Create an empty array by leaving the value blank.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_11.jpg\" alt=\"\" class=\"wp-image-23022\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 id=\"outline__1_3_2\" class=\"wp-block-heading\">Set up sequential execution<\/h4>\n\n\n\n<p>1. Select \"New Step\". Press the built-in tab and search for \"Control\". Click the \"Apply to each\" icon.\"<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_12.jpg\" alt=\"\" class=\"wp-image-23023\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2. Specify \"Select an output from previous step\".<\/p>\n\n\n\n<p>In this example, specify \"Records value\" from \"Add dynamic content\".<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_13.jpg\" alt=\"\" class=\"wp-image-23025\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 id=\"outline__1_3_3\" class=\"wp-block-heading\">Add records to array<\/h4>\n\n\n\n<p>Specify the records required as data to be passed to the cloud BOT from the column names of the sheet obtained by \"Get rows\".<\/p>\n\n\n\n<p>1. Click \"Add Action\". Search for \"variable\" and select \"Append to Array variable\".<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_14.jpg\" alt=\"\" class=\"wp-image-23026\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2. Specify \"Name\" and \"Value\".<\/p>\n\n\n\n<p>The value can be specified from \"Add dynamic content\". Set the number of target lines that you want to set to the action after this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_16.jpg\" alt=\"\" class=\"wp-image-23033\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 id=\"outline__1_3_4\" class=\"wp-block-heading\">Join arrays and format text<\/h4>\n\n\n\n<p>1. Select \"New Step\". Search for \"Data operation\" and click the \"Join\" icon.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_17.jpg\" alt=\"\" class=\"wp-image-23030\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2. Set \"From\" and \"Join with\". You can specify the elements in the arrays to be combined.<\/p>\n\n\n\n<p>Set the number of targets you want to set for the action after this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_18.jpg\" alt=\"\" class=\"wp-image-23032\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 id=\"outline__1_4\" class=\"wp-block-heading\">Setting Cloud BOT<\/h3>\n\n\n\n<p>1. Select \"New Step\". Search for \"Cloud BOT\" and select \"Execute BOT\" from Actions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_19.jpg\" alt=\"\" class=\"wp-image-23034\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2. Set the action. Click&nbsp;<a href=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_trigger_action\/#outline__1_2\">here<\/a>&nbsp;for setting values and <a href=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_trigger_action\/#outline__2\">here<\/a> for Data values.<\/p>\n\n\n\n<p>In this example, we will set the output value of the data manipulation.<\/p>\n\n\n\n<p><small>*Create a connection if it doesn't exist. Click&nbsp;<a href=\"https:\/\/docs.c-bot.pro\/en\/connect\/powerautomate\/powerautomate_manual\/#outline__2_1\">here&nbsp;<\/a>for information on creating a connection.<\/small><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_20.jpg\" alt=\"\" class=\"wp-image-23035\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>A flow has been created. Check the operation from \"Test\" in the upper menu (upper right of the screen). If you can confirm the execution result, the setting is completed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_22.jpg\" alt=\"\" class=\"wp-image-23036\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>You can check the execution result in the execution log of the cloud BOT.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1680\" height=\"855\" src=\"https:\/\/docs.c-bot.pro\/wp-content\/uploads\/2023\/09\/pa_en_use_case_image_6_21-1.jpg\" alt=\"\" class=\"wp-image-23038\"\/><\/figure>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;Home &gt; Connect &gt; Power Automate &gt; Run a BOT using the list data acquired from the spreadsheet as the input value (group data) for BOT Creating a flow Create a flow that executes the list data obtained from the spreadsheet as the BOT input value (group data). Schedule (Recurrence)Generate a trigger at specified time. Google Sheets\uff08Get multiple rows\uff09Get multiple rows of data in the spreadsheet. Control\uff08Apply to each\uff09The following actions are executed sequentially for the number of rows of group data acquired by \"Get multiple rows\". Cloud BOT\uff08Execute BOT\uff09Execute BOT with the array output by the control as the input value (group data). Setting a Schedule 1. Click \"Create\" from the navigation menu on the left side of the screen and select \"Automated Cloudflow\". 2. Although a modal window of \"Build an automated cloud flow\" will be displayed, press the \"Skip\" button.\" 3. Search for \"Schedule\" in the built-in tab and select \"Recurrence\". 4. Set \"Interval\" and \"Frequency\". Setting Google sheets 1.Select \"New Step\". 2. Search for \"Google Sheets\", click the icon and select \"Get Rows\". 3. Set the action. Set \"File\" and \"Worksheet\". *Create a connection if it doesn't exist. You can check the output value by performing [&hellip;]<\/p>\n","protected":false},"author":2,"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=16836","footnotes":""},"categories":[50],"tags":[19],"class_list":["post-17309","post","type-post","status-publish","format-standard","hentry","category-powerautomate","tag-power-automate","en-US"],"_links":{"self":[{"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts\/17309","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/comments?post=17309"}],"version-history":[{"count":9,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts\/17309\/revisions"}],"predecessor-version":[{"id":23071,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/posts\/17309\/revisions\/23071"}],"wp:attachment":[{"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/media?parent=17309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/categories?post=17309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.c-bot.pro\/wp-json\/wp\/v2\/tags?post=17309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}