{"id":13,"date":"2024-09-04T13:29:21","date_gmt":"2024-09-04T20:29:21","guid":{"rendered":"https:\/\/gilosoftblogcom.wordpress.com\/2024\/09\/04\/collaboration-magic\/"},"modified":"2024-09-04T13:29:21","modified_gmt":"2024-09-04T20:29:21","slug":"collaboration-magic","status":"publish","type":"post","link":"https:\/\/blog.gilosoft.com\/index.php\/2024\/09\/04\/collaboration-magic\/","title":{"rendered":"Using StartsWith function in Power Automate"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Power Automate has different text functions that one can use to manipulate strings in order to enhance workflows for your various applications. One such text functions is the StartsWith function, this function checks to see whether a string starts with a certain substring. This function can be used in scenarios where you might want validate certain data based on a strings prefix.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here we will explore a simple step by step guide to how this function can be used in power automate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">StartsWith Syntax<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nStartsWith('string','substring')\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Step 1: Create A New Flow<\/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-13-at-1.24.02%E2%80%AFPM-1024x654.png\" alt=\"\" class=\"wp-image-2428\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: Add a new initialize variable to hold 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-13-at-1.25.04%E2%80%AFPM-1024x341.png\" alt=\"\" class=\"wp-image-2429\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3: Add a compose action card with the following details:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nstartsWith(variables('myString'),'Joseph')\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-13-at-1.31.12%E2%80%AFPM-1024x326.png\" alt=\"\" class=\"wp-image-2430\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 4: Save and Test flow. You should get the following details as your results.<\/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-13-at-1.49.08%E2%80%AFPM-1024x648.png\" alt=\"\" class=\"wp-image-2431\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The magic that emerges from effective collaboration is undeniable. When diverse minds converge with a shared purpose, the results can be transformative.<\/p>\n","protected":false},"author":2,"featured_media":24,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-13","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\/13","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=13"}],"version-history":[{"count":0,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/media\/24"}],"wp:attachment":[{"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gilosoft.com\/index.php\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}