{"id":24940,"date":"2020-09-30T15:43:17","date_gmt":"2020-09-30T15:43:17","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=24940"},"modified":"2023-09-08T13:01:37","modified_gmt":"2023-09-08T07:31:37","slug":"pass-field-value-from-one-page-to-another-as-query-string-parameter-in-microsoft-powerapps-portals","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2020\/09\/pass-field-value-from-one-page-to-another-as-query-string-parameter-in-microsoft-powerapps-portals\/","title":{"rendered":"Pass Field Value from One Page to Another as Query String Parameter in Microsoft PowerApps Portals"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p style=\"text-align: justify;\">Microsoft PowerApps Portals provides us the configuration surface which allows users to add forms to collect data in the portal without custom development. Entity Forms provides the ability to create, update and display CRM entities records and they are placed into webpages in the portal or used in conjunction with sub grids and entity lists to build out complete web applications.<\/p>\n<p>Recently, we had a business requirement to create <strong>Account<\/strong> entity record from PowerApps Portals with <strong>Contact<\/strong> lookup selected and \u2018on submit\u2019 of <strong>Account<\/strong> record, redirect to <strong>Contact<\/strong> selected on newly created Account record. We can achieve this with the help of below <strong>On Success Settings<\/strong> configuring options of <strong>Entity Form<\/strong>,<\/p>\n<ol style=\"text-align: justify;\">\n<li><strong>On Success<\/strong>: This defines what will be the next step on successful submission of entity form. This field has below options and <strong>Display Success Message<\/strong> is the default one:\n<ul>\n<li>Display Success Message<\/li>\n<li>Redirect<\/li>\n<\/ul>\n<\/li>\n<li><strong>&#8216;or Web Page&#8217;<\/strong>: Set a Web Page from the current website on which user wants to redirect on successful submission.<\/li>\n<li><strong>Append Attribute Value to Query String Parameter Name<\/strong>: Name to give to the parameter that correlates to the attribute value on the target entity that gets appended to the Query String of the redirect URL.<\/li>\n<li><strong>Append Attribute Value to Query String Attribute Logical Name<\/strong>: Logical name of an attribute on the target entity to get the value to be appended to the Query String of the redirect URL.<\/li>\n<\/ol>\n<p style=\"text-align: justify;\">To be able to create <strong>Account<\/strong> entity record from PowerApps Portals we need to do following configurations in portal<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol style=\"text-align: justify;\">\n<li>Create new <strong>Entity Form<\/strong> for <strong>Account<\/strong> entity with <strong>Insert<\/strong> mode as shown below,<br \/>\n<u>Account entity form<\/u>:<\/li>\n<li>Then create one <strong>Web Page<\/strong> to access the account entity form from portal as shown below,<br \/>\n<u>Account web page<\/u>:<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-2.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24948 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-2.png\" alt=\"Pass Field Value from One Page to Another as Query String Parameter\" width=\"1154\" height=\"524\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-2.png 1154w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-2-300x136.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-2-768x349.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-2-1024x465.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-2-660x300.png 660w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><\/a><\/li>\n<li>After that configure the <strong>Link<\/strong> in <strong>Primary Navigation Web Link Set<\/strong> to access <strong>Account Web Page<\/strong> from Portal Navigation as shown below,<br \/>\n<u>Link in Primary Navigation Web Link Set<\/u>:<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-3.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24947 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-3.png\" alt=\"Pass Field Value from One Page to Another as Query String Parameter\" width=\"1143\" height=\"455\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-3.png 1143w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-3-300x119.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-3-768x306.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-3-1024x408.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-3-660x263.png 660w\" sizes=\"(max-width: 1143px) 100vw, 1143px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">By doing the above configurations we can access the <strong>Create Account Form<\/strong> in the portal on <strong>Create Account<\/strong> navigation click as shown below,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/image001.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24987 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/image001.jpg\" alt=\"Pass Field Value from One Page to Another as Query String Parameter\" width=\"634\" height=\"328\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/image001.jpg 634w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/image001-300x155.jpg 300w\" sizes=\"(max-width: 634px) 100vw, 634px\" \/><\/a><\/li>\n<\/ol>\n<p style=\"text-align: justify;\">Below are the configurations which have done to navigate to <strong>Contact<\/strong> selected on newly created Account record on successful creation of <strong>Account<\/strong> record,<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol style=\"text-align: justify;\">\n<li>Configure another <strong>Entity Form<\/strong> which will be for <strong>Contact<\/strong> entity with below configurations,\n<ul>\n<li>Entity Name: Contact<\/li>\n<li>Mode: Edit\/ReadOnly<\/li>\n<li>Record Source Type: Query String<\/li>\n<li>Record ID Query String Parameter Name: id<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline;\">Contact entity form:<\/span><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-5.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24945 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-5.png\" alt=\"Pass Field Value from One Page to Another as Query String Parameter\" width=\"1137\" height=\"527\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-5.png 1137w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-5-300x139.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-5-768x356.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-5-1024x475.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-5-660x306.png 660w\" sizes=\"(max-width: 1137px) 100vw, 1137px\" \/><\/a><\/li>\n<li>Then create one <strong>Web Page<\/strong> as well for <strong>Contact<\/strong> entity and set the Contact entity form as shown below, Contact web page:<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-6.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24944 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-6.png\" alt=\"Pass Field Value from One Page to Another as Query String Parameter\" width=\"1151\" height=\"455\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-6.png 1151w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-6-300x119.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-6-768x304.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-6-1024x405.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-6-660x261.png 660w\" sizes=\"(max-width: 1151px) 100vw, 1151px\" \/><\/a><\/li>\n<li>After that go to <strong>Account Entity<\/strong> Form and add below configurations in On Success Settings,<span style=\"text-decoration: underline;\">Configurations:<\/span>\n<ul>\n<li>On Success: Redirect<\/li>\n<li>or Web Page: Custom &#8211; Account Web Page<\/li>\n<li>Append Attribute Value to Query String Parameter Name: id<\/li>\n<li>Record ID Query String Parameter Name: id<\/li>\n<li>Append Attribute Value to Query String Attribute Logical Name: primarycontactid<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>In the above configurations,<br \/>\n<strong>Custom &#8211; Account Web Page<\/strong> is a <strong>Web Page<\/strong> name that has <strong>Contact<\/strong> entity form set with <strong>Edit<\/strong> mode. And, <strong>id<\/strong> is <strong>Record ID Query String Parameter Name<\/strong> added on Contact entity form.<\/li>\n<li style=\"list-style-type: none;\"><span style=\"text-decoration: underline;\">Account entity form<\/span>:<\/li>\n<li style=\"list-style-type: none;\"><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-7.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24943 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-7.png\" alt=\"Pass Field Value from One Page to Another as Query String Parameter\" width=\"603\" height=\"344\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-7.png 603w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-7-300x171.png 300w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/a>\n<p style=\"text-align: justify;\">After all these configurations, once you navigate to <strong>Create Account<\/strong> navigation from the portal you will see the create form of account entity as per below screen clip,<\/p>\n<\/li>\n<li style=\"list-style-type: none;\">\n<p style=\"text-align: justify;\"><u>On portal side<\/u>: <a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-8.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24942 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-8.png\" alt=\"Pass Field Value from One Page to Another as Query String Parameter\" width=\"602\" height=\"308\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-8.png 602w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-8-300x153.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">And, on submit button click of the above form, it will redirect to <strong>Custom \u2013 Contact Web Page<\/strong> and will display details of selected contact selected in \u201c<strong>Primary Contact<\/strong>\u201d field of account form as shown in below screen clip,The navigation URL format will be as below,<\/p>\n<p>&lt;portal url&gt;\/&lt;partial url of web page&gt;\/?id=&lt;selected contact record id&gt;<\/p>\n<p>For example: &lt;portal url&gt;\/customcontactwebpage\/?id=6da0e5b9-88df-e311-b8e5-6c3be5a8b200<\/p>\n<p><u>On portal side<\/u>:<a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-9.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-24941 size-full\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-9.png\" alt=\"Pass Field Value from One Page to Another as Query String Parameter\" width=\"603\" height=\"310\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-9.png 603w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2020\/09\/Pass-Field-Value-from-One-Page-to-Another-as-Query-String-Parameter-9-300x154.png 300w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">In a similar way, we can pass the value of any other field as well which is present on entity form as a query string parameter.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<\/li>\n<li style=\"list-style-type: none;\">\n<p style=\"text-align: justify;\">In this blog, we have seen how we can pass the field value from one page to another using query string parameter configurations of entity form.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">Free 70% of storage space in CRM with Attachment Management Apps!<\/div><\/div><\/h2>\n<p><em><strong><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/attach-2-dynamics-365-crm-upload-multiple-files-sharepoint-cloud-storage\" target=\"_blank\" rel=\"noopener noreferrer\">Attach2Dynamics<\/a> &#8211; Store and manage documents\/attachments in cloud storage of your choice &#8211; SharePoint, Dropbox or Azure Blob Storage from within Dynamics 365 CRM.<\/strong><\/em><br \/>\n<em><strong><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/dynamics-365-crm-sharepoint-security-metadata-sync\" target=\"_blank\" rel=\"noopener noreferrer\">SharePoint Security Sync<\/a><\/strong> \u2013 Robust and secure solution to integrate Dynamics 365 CRM and SharePoint Security Sync thereby ensuring secure access to confidential documents stored in SharePoint.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Microsoft PowerApps Portals provides us the configuration surface which allows users to add forms to collect data in the portal without custom development. Entity Forms provides the ability to create, update and display CRM entities records and they are placed into webpages in the portal or used in conjunction with sub grids and entity\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2020\/09\/pass-field-value-from-one-page-to-another-as-query-string-parameter-in-microsoft-powerapps-portals\/\">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,19,37,44,2053,2763],"tags":[562,569,1170,2027,1353],"class_list":["post-24940","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","category-dynamics-crm","category-microsoft-portals","category-power-apps","category-power-apps-portals","category-power-pages","tag-dynamics-365-microsoft-powerapps","tag-dynamics-365-portal","tag-microsoft-powerapps","tag-power-apps-portal","tag-powerapps-dynamics-365-crm"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/24940","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=24940"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/24940\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=24940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=24940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=24940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}