{"id":26433,"date":"2021-01-14T10:29:25","date_gmt":"2021-01-14T10:29:25","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=26433"},"modified":"2021-01-21T09:10:18","modified_gmt":"2021-01-21T09:10:18","slug":"use-relevance-search-api-in-power-automate-canvas-app-part-2","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/01\/use-relevance-search-api-in-power-automate-canvas-app-part-2\/","title":{"rendered":"Use Relevance Search API in Power Automate &#038; Canvas App &#8211; Part 2"},"content":{"rendered":"<h1>Introduction<\/h1>\n<p style=\"text-align: justify;\">In the <a href=\"https:\/\/www.inogic.com\/blog\/2021\/01\/use-relevance-search-api-in-power-automate-canvas-app-part-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous blog<\/a>, we obtained the response from the Relevance Search API request through Power Automate Flow. In this blog, we will use that response in the Canvas app. We will see how we can leverage the potential of Relevance search in the Canvas app.<\/p>\n<p style=\"text-align: justify;\">If you are not familiar with how to create Canvas app then you can refer the following article,<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/powerapps\/maker\/canvas-apps\/get-started-test-drive\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.microsoft.com\/en-us\/powerapps\/maker\/canvas-apps\/get-started-test-drive<\/a><\/p>\n<p style=\"text-align: justify;\">Let us start with creating a new canvas app,<\/p>\n<p>\u2022 Sign in to <a href=\"https:\/\/make.powerapps.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/make.powerapps.com<\/a> and create a new Canvas app.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/canvas.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26435 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/canvas.png\" alt=\"canvas app\" width=\"542\" height=\"261\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/canvas.png 542w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/canvas-300x144.png 300w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/a><\/p>\n<p>\u2022 As we are going to create Canvas app for Dynamics 365 app, we will select the Common Data Service Phone Layout,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/common-data-service.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26436 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/common-data-service.png\" alt=\"common data service\" width=\"838\" height=\"392\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/common-data-service.png 838w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/common-data-service-300x140.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/common-data-service-768x359.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/common-data-service-660x309.png 660w\" sizes=\"(max-width: 838px) 100vw, 838px\" \/><\/a><\/p>\n<p>\u2022 In the next screen, we will first add the connection then add the table.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-connection.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26437 size-large\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-connection-1024x502.png\" alt=\"add connection\" width=\"665\" height=\"326\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-connection-1024x502.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-connection-300x147.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-connection-768x376.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-connection-660x324.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-connection.png 1173w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/a><\/p>\n<p>\u2022 This will create a canvas app with default Browse, Detail and Edit screen. As we are going to work with Contact and lead, we added the screens for Lead and Contact.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/create-canvas-app.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26438 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/create-canvas-app.png\" alt=\"create canvas app\" width=\"793\" height=\"292\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/create-canvas-app.png 793w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/create-canvas-app-300x110.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/create-canvas-app-768x283.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/create-canvas-app-660x243.png 660w\" sizes=\"(max-width: 793px) 100vw, 793px\" \/><\/a><\/p>\n<p>\u2022 We will now add a new screen for the Relevance Search,\u00a0like shown below<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-relevance-screen.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26439 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-relevance-screen.png\" alt=\"add relevance screen\" width=\"745\" height=\"424\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-relevance-screen.png 745w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-relevance-screen-300x171.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/add-relevance-screen-660x376.png 660w\" sizes=\"(max-width: 745px) 100vw, 745px\" \/><\/a><\/p>\n<p>\u2022 We will call Power Automate Flow that we have created in the <a href=\"https:\/\/www.inogic.com\/blog\/2021\/01\/use-relevance-search-api-in-power-automate-canvas-app-part-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous blog<\/a> upon OnSelect of the Search button and upon OnChange of the textbox.<\/p>\n<p style=\"text-align: justify;\">We will use below expression OnSelect of the button and on OnChange of the textbox.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/Relevance-Search-API-in-canvas.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26569 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/Relevance-Search-API-in-canvas.png\" alt=\"Relevance Search API in canvas\" width=\"629\" height=\"60\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/Relevance-Search-API-in-canvas.png 629w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/Relevance-Search-API-in-canvas-300x29.png 300w\" sizes=\"(max-width: 629px) 100vw, 629px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">This expression will run the \u2018RelevanceSearchAPIFlow\u2019 and will pass the text entered in the TextBox. After successful run, it will store the response in the Collection called \u201cSearchCollection\u201d.<\/p>\n<p>\u2022 Save and run the App. Enter some text in the Textbox and either click enter or click on the Search Button. In the background, a Power Automate Flow should run successfully and response should get stored in the \u2018SearchCollection\u2019 collection.<\/p>\n<p>\u2022 To check the collection, click on View -&gt; Collections<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/collection.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26441 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/collection.png\" alt=\"collection\" width=\"723\" height=\"135\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/collection.png 723w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/collection-300x56.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/collection-660x123.png 660w\" sizes=\"(max-width: 723px) 100vw, 723px\" \/><\/a><\/p>\n<p>You should see the response added in the collection.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/response-added-in-collection.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26442 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/response-added-in-collection.png\" alt=\"response added in collection\" width=\"835\" height=\"574\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/response-added-in-collection.png 835w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/response-added-in-collection-300x206.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/response-added-in-collection-768x528.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/response-added-in-collection-660x454.png 660w\" sizes=\"(max-width: 835px) 100vw, 835px\" \/><\/a><\/p>\n<p>\u2022 Now we will use this collection to bind to the List control. Select the List control and add the below expression to the Items property,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/2Relevance-Search-API-in-canvas.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26570 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/2Relevance-Search-API-in-canvas.png\" alt=\"Relevance Search API in canvas\" width=\"623\" height=\"38\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/2Relevance-Search-API-in-canvas.png 623w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/2Relevance-Search-API-in-canvas-300x18.png 300w\" sizes=\"(max-width: 623px) 100vw, 623px\" \/><\/a><\/p>\n<p>Here we are assigning non-empty items from the SearchCollection collection to the List control.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/list-control.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-26444\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/list-control.png\" alt=\"list control\" width=\"782\" height=\"420\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/list-control.png 782w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/list-control-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/list-control-768x412.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/list-control-660x354.png 660w\" sizes=\"(max-width: 782px) 100vw, 782px\" \/><\/a><\/p>\n<p>\u2022 After this, select the List control and add below expression OnSelect property of the control.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/3Relevance-Search-API-in-canvas.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26571 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/3Relevance-Search-API-in-canvas.png\" alt=\"Relevance Search API in canvas\" width=\"633\" height=\"37\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/3Relevance-Search-API-in-canvas.png 633w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/3Relevance-Search-API-in-canvas-300x18.png 300w\" sizes=\"(max-width: 633px) 100vw, 633px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Here we are extracting and setting the GUID of the record that we have in the collection to the \u2018SelectedItemID\u2019 variable.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/extracting-setting-GUID.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26446 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/extracting-setting-GUID.png\" alt=\"extracting &amp; setting GUID\" width=\"782\" height=\"420\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/extracting-setting-GUID.png 782w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/extracting-setting-GUID-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/extracting-setting-GUID-768x412.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/extracting-setting-GUID-660x354.png 660w\" sizes=\"(max-width: 782px) 100vw, 782px\" \/><\/a><\/p>\n<p>\u2022 We will now bind the record values to the list item. Select the first label and add below expression,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/4Relevance-Search-API-in-canvas.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26572 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/4Relevance-Search-API-in-canvas.png\" alt=\"Relevance Search API in canvas\" width=\"642\" height=\"57\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/4Relevance-Search-API-in-canvas.png 642w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/4Relevance-Search-API-in-canvas-300x27.png 300w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/a><\/p>\n<p>Here we are binding the primary field value of the record.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/binding-primary-field-value.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26449 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/binding-primary-field-value.png\" alt=\"binding primary field value\" width=\"640\" height=\"195\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/binding-primary-field-value.png 640w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/binding-primary-field-value-300x91.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Similarly, select the second label and add below expression,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/5Relevance-Search-API-in-canvas.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26573 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/5Relevance-Search-API-in-canvas.png\" alt=\"Relevance Search API in canvas\" width=\"633\" height=\"42\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/5Relevance-Search-API-in-canvas.png 633w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/5Relevance-Search-API-in-canvas-300x20.png 300w\" sizes=\"(max-width: 633px) 100vw, 633px\" \/><\/a><\/p>\n<p>Here we are binding the Entity logical name to understand the entity type of the record,<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-26464 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/binding-the-Entity-logical-name.png\" alt=\"entity logical name\" width=\"610\" height=\"207\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/binding-the-Entity-logical-name.png 610w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/binding-the-Entity-logical-name-300x102.png 300w\" sizes=\"(max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>\u2022 Select the \u2018NextArrow\u2019 button and add below expression upon OnSelect property,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/7Relevance-Search-API-in-canvas.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26574 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/7Relevance-Search-API-in-canvas.png\" alt=\"Relevance Search API in canvas\" width=\"656\" height=\"111\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/7Relevance-Search-API-in-canvas.png 656w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/7Relevance-Search-API-in-canvas-300x51.png 300w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Here we are first setting the GUID of the record to the SelectedItemID variable and then switching the Detail screen based on the Entity logical name. For example, if the entity is Contact, we are navigating the screen to DetailsScreenContact_1 and if the entity is lead, we are navigating to the DetailsScreenLead_1 screen.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/advanced.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26452 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/advanced.png\" alt=\"advanced\" width=\"608\" height=\"289\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/advanced.png 608w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/advanced-300x143.png 300w\" sizes=\"(max-width: 608px) 100vw, 608px\" \/><\/a><\/p>\n<p>\u2022 Now select the Detail screen where we will see the details of the record. Add below expression to Item property of the DetailScreen,<\/p>\n<p>This expression is for the contact screen,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/8Relevance-Search-API-in-canvas.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26575 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/8Relevance-Search-API-in-canvas.png\" alt=\"Relevance Search API in canvas\" width=\"625\" height=\"34\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/8Relevance-Search-API-in-canvas.png 625w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/8Relevance-Search-API-in-canvas-300x16.png 300w\" sizes=\"(max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-contact.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26454 size-large\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-contact-1024x363.png\" alt=\"detail screen contact\" width=\"665\" height=\"236\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-contact-1024x363.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-contact-300x106.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-contact-768x272.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-contact-660x234.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-contact.png 1340w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/a><\/p>\n<p>Similarly, add expression for other details screen,<\/p>\n<p>This expression is for the Lead screen,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/9Relevance-Search-API-in-canvas.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26576 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/9Relevance-Search-API-in-canvas.png\" alt=\"Relevance Search API in canvas\" width=\"640\" height=\"44\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/9Relevance-Search-API-in-canvas.png 640w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/9Relevance-Search-API-in-canvas-300x21.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-lead.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26456 size-large\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-lead-1024x308.png\" alt=\"detail screen lead\" width=\"665\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-lead-1024x308.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-lead-300x90.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-lead-768x231.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-lead-660x198.png 660w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/detail-screen-lead.png 1338w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/a><\/p>\n<p>\u2022 Here we have setup the detail screens of lead and contact to show up the record details on click of the Search Results item from Relevance Search Screen.<\/p>\n<p>Relevance Search screen,<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/Relevance-Search-screen.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26457 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/Relevance-Search-screen.png\" alt=\"relevance search screen\" width=\"380\" height=\"426\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/Relevance-Search-screen.png 380w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/Relevance-Search-screen-268x300.png 268w\" sizes=\"(max-width: 380px) 100vw, 380px\" \/><\/a><\/p>\n<p>On click of the next arrow button, it will open the appropriate entity record.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/lead-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26459 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/lead-1.png\" alt=\"lead\" width=\"370\" height=\"456\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/lead-1.png 370w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/lead-1-243x300.png 243w\" sizes=\"(max-width: 370px) 100vw, 370px\" \/><\/a><\/p>\n<p>\u2022 You can add entities that you need and you can add fields to show up in the detail screen or the search result.<\/p>\n<p style=\"text-align: justify;\">This way we can execute the Relevance search API from Canvas App and represent the Search results using List control.<\/p>\n<h2>Conclusion<\/h2>\n<p style=\"text-align: justify;\">You can use the logic explained in this blog to add Relevance search into your Canvas app.<\/p>\n<p style=\"text-align: justify;\">Below is the small clip of the working Relevance Search screen,<\/p>\n<div style=\"width: 366px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-26433-1\" width=\"366\" height=\"610\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/RelevanceSearch.44.27_REC.mp4?_=1\" \/><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/RelevanceSearch.44.27_REC.mp4\">https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/RelevanceSearch.44.27_REC.mp4<\/a><\/video><\/div>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/map-my-relationships-dynamics-365-crm\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-26462 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/MMR.jpg\" alt=\"\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/MMR.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/MMR-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/MMR-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/01\/MMR-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In the previous blog, we obtained the response from the Relevance Search API request through Power Automate Flow. In this blog, we will use that response in the Canvas app. We will see how we can leverage the potential of Relevance search in the Canvas app. If you are not familiar with how to\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/01\/use-relevance-search-api-in-power-automate-canvas-app-part-2\/\">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":[1954,16,19,1913,38,1985],"tags":[1867,1975,2121],"class_list":["post-26433","post","type-post","status-publish","format-standard","hentry","category-canvas-apps","category-dynamics-365","category-dynamics-crm","category-microsoft-power-platform-services","category-microsoft-powerapps","category-power-automate","tag-canvas-app","tag-power-automate","tag-relevance-search-api"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/26433","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=26433"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/26433\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=26433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=26433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=26433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}