{"id":28228,"date":"2021-06-11T10:06:59","date_gmt":"2021-06-11T10:06:59","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=28228"},"modified":"2021-09-01T09:38:18","modified_gmt":"2021-09-01T09:38:18","slug":"how-to-read-url-parameters-from-url-using-uriquery-function-in-power-automate","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-url-parameters-from-url-using-uriquery-function-in-power-automate\/","title":{"rendered":"How to Read URL Parameters from URL using uriQuery() function in Power Automate"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>In this blog, we will see how to read the parameter from the URL in <a href=\"https:\/\/www.inogic.com\/blog\/category\/power-automate\/\">Power Automate<\/a>.<\/p>\n<p>For example, let\u2019s take the below URL:<\/p>\n<p><strong><em><u>https:\/\/inogic.com?EmpId=1&amp;EmpName=JohnThomas<\/u><\/em><\/strong><\/p>\n<p>Here, we have passed Employee Id and Employee Name in the web URL and now we have to get those two parameters from URL. There is one inbuilt function in Power Automate i.e. <strong><em>uriQuery()<\/em><\/strong> which will help you to read those two parameters from URL.<\/p>\n<p>To explore this function, we created one Power Automate flow which will get triggered on creation of CRM entity record. In that, \u00a0initialize one variable and assign above URL to that variable as shown in the below screenshot:<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-Read-URL-parameters-from-URL-using-uriQuery.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28229 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-Read-URL-parameters-from-URL-using-uriQuery.jpeg\" alt=\"Read URL parameters from URL using uriQuery\" width=\"613\" height=\"185\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-Read-URL-parameters-from-URL-using-uriQuery.jpeg 613w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/1-Read-URL-parameters-from-URL-using-uriQuery-300x91.jpeg 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><\/a><\/p>\n<p>After creating URL variable, we passed this variable to the uriQuery() function using Data Operation as shown in below screenshot:<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/2-Read-URL-parameters-from-URL-using-uriQuery.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28230 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/2-Read-URL-parameters-from-URL-using-uriQuery.jpeg\" alt=\"Read URL parameters from URL using uriQuery\" width=\"879\" height=\"435\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/2-Read-URL-parameters-from-URL-using-uriQuery.jpeg 879w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/2-Read-URL-parameters-from-URL-using-uriQuery-300x148.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/2-Read-URL-parameters-from-URL-using-uriQuery-768x380.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/2-Read-URL-parameters-from-URL-using-uriQuery-660x327.jpeg 660w\" sizes=\"(max-width: 879px) 100vw, 879px\" \/><\/a><\/p>\n<p>Given below is the expression that we have used in the above step:<\/p>\n<p><strong><em><u>uriQuery(variables(\u2018URL\u2019))<\/u><\/em><\/strong><\/p>\n<p>After running the above Power Automate flow, we will get the expected output i.e., URL parameter will be separated from URL as shown in the below screenshot:<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/3-Read-URL-parameters-from-URL-using-uriQuery.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28231 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/3-Read-URL-parameters-from-URL-using-uriQuery.jpeg\" alt=\"Read URL parameters from URL using uriQuery\" width=\"615\" height=\"373\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/3-Read-URL-parameters-from-URL-using-uriQuery.jpeg 615w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/3-Read-URL-parameters-from-URL-using-uriQuery-300x182.jpeg 300w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/4-Read-URL-parameters-from-URL-using-uriQuery.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-28232 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/4-Read-URL-parameters-from-URL-using-uriQuery.jpeg\" alt=\"Read URL parameters from URL using uriQuery\" width=\"611\" height=\"381\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/4-Read-URL-parameters-from-URL-using-uriQuery.jpeg 611w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/06\/4-Read-URL-parameters-from-URL-using-uriQuery-300x187.jpeg 300w\" sizes=\"(max-width: 611px) 100vw, 611px\" \/><\/a><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In this way, by using uriQuery() function we can easily retrieve the parameters from URL in Power Automate flow.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/click-2-clone-microsoft-dynamics-crm-records\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27763 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/05\/c2c.jpg\" alt=\"\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/05\/c2c.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/05\/c2c-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/05\/c2c-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/05\/c2c-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this blog, we will see how to read the parameter from the URL in Power Automate. For example, let\u2019s take the below URL: https:\/\/inogic.com?EmpId=1&amp;EmpName=JohnThomas Here, we have passed Employee Id and Employee Name in the web URL and now we have to get those two parameters from URL. There is one inbuilt function\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/06\/how-to-read-url-parameters-from-url-using-uriquery-function-in-power-automate\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,1985],"tags":[2007],"class_list":["post-28228","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","category-power-automate","tag-dynamics-365-power-automate"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/28228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=28228"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/28228\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=28228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=28228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=28228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}