{"id":14,"date":"2024-09-06T12:45:12","date_gmt":"2024-09-06T19:45:12","guid":{"rendered":"https:\/\/gilosoftblogcom.wordpress.com\/?p=8"},"modified":"2024-09-25T18:09:38","modified_gmt":"2024-09-25T18:09:38","slug":"using-split-function-in-power-automate","status":"publish","type":"post","link":"https:\/\/blog.gilosoft.com\/index.php\/2024\/09\/06\/using-split-function-in-power-automate\/","title":{"rendered":"Using Split Function in Power Automate"},"content":{"rendered":"\n<p>Text functions are one tool that can be used in Power Automate to manipulate strings and help one get a desired output that may streamline a workflow. Here we will be exploring the split function and go over how to use it in a simple example.<\/p>\n\n\n\n<p><strong>What is the &#8216;split&#8217; Function?<\/strong><\/p>\n\n\n\n<p>The split function is a function that splits a string using a given delimiter into an array.<br>The syntax is as follows:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsplit('&lt;text&gt;', '&lt;delimiter&gt;')\n<\/pre><\/div>\n\n\n<p>Input values are:<br>text &#8211; The string that needs to be split by a given delimiter<br>delimiter &#8211; The delimiter you will specify to split the string into an array<br><br>Return value:<br>A string that has been split into an array with the given delimiter.<\/p>\n\n\n\n<p>Here is an example:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsplit('Joe, Jed, Joy, JD', ',')\n=&gt; &#x5B;'Joe','Jed','Joy','JD']\n\nsplit('Joe, Jed, Joy, JD'', '#')\n=&gt; &#x5B;'Joe, Jed, Joy, JD']\n<\/pre><\/div>\n\n\n<p><strong>Example of Split Function in Power Automate<\/strong><\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Create A New instant cloud flow with a manual trigger. (flow.microsoft.com)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gilosoft.com\/wp-content\/uploads\/2024\/08\/Screenshot-2024-08-23-at-11.00.55%E2%80%AFAM-1024x651.png\" alt=\"\" class=\"wp-image-2491\"\/><\/figure>\n\n\n\n<p><strong>Step 2:<\/strong> Add a new initialize variable with the following details:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gilosoft.com\/wp-content\/uploads\/2024\/08\/Screenshot-2024-08-26-at-7.03.50%E2%80%AFPM-1024x338.png\" alt=\"\" class=\"wp-image-2492\"\/><\/figure>\n\n\n\n<p><strong>Step 3:<\/strong> Add a compose action card to store the below expression:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsplit(variables('Text'),'and')\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gilosoft.com\/wp-content\/uploads\/2024\/08\/Screenshot-2024-08-26-at-6.57.12%E2%80%AFPM-1024x354.png\" alt=\"\" class=\"wp-image-2490\"\/><\/figure>\n\n\n\n<p><strong>Step 4:<\/strong> Save &amp; Test Flow. Your results should be as the following details show.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gilosoft.com\/wp-content\/uploads\/2024\/08\/Screenshot-2024-08-26-at-7.10.04%E2%80%AFPM-1024x464.png\" alt=\"\" class=\"wp-image-2493\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Text functions are one tool that can be used in Power Automate to manipulate strings and help one get a desired output that may streamline a workflow. Here we will be exploring the split function and go over how to use it in a simple example. What is the &#8216;split&#8217; Function? The split function is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":102,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-power-automate-text-functions"],"_links":{"self":[{"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":1,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/posts\/14\/revisions\/165"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/media\/102"}],"wp:attachment":[{"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}