{"id":9,"date":"2024-09-04T13:29:24","date_gmt":"2024-09-04T20:29:24","guid":{"rendered":"https:\/\/gilosoftblogcom.wordpress.com\/2024\/09\/04\/the-art-of-connection\/"},"modified":"2024-09-04T13:29:24","modified_gmt":"2024-09-04T20:29:24","slug":"the-art-of-connection","status":"publish","type":"post","link":"https:\/\/blog.gilosoft.com\/index.php\/2024\/09\/04\/the-art-of-connection\/","title":{"rendered":"Using the Split function in Power Automate"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\"><strong>What is the &#8216;split&#8217; Function?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\"><strong>Example of Split Function in Power Automate<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1: 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 class=\"wp-block-paragraph\">Step 2: 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 class=\"wp-block-paragraph\">Step 3: 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 class=\"wp-block-paragraph\">Step 4: 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>In the ever-evolving world, the art of forging genuine connections remains timeless. Whether it\u2019s with colleagues, clients, or partners, establishing a genuine rapport paves the way for collaborative success.<\/p>\n","protected":false},"author":2,"featured_media":27,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-9","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\/9","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=9"}],"version-history":[{"count":0,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/media\/27"}],"wp:attachment":[{"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}