You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/search-howto-powerapps.md
+22-24Lines changed: 22 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,15 @@ This document shows how to create a Power Apps custom connector so that you can
23
23
24
24
There are two main steps to having a PowerApp that shows Azure Cognitive Search results. First, let's create a connector that can query the search index. In the [next section](#visualize-results-from-the-custom-connector) we will update your Power Apps application to visualize the results returned by the connector.
25
25
26
-
27
26
1. Go to [make.powerapps.com](http://make.powerapps.com) and **Sign In**.
1. Click **+ New custom connector** and then select **Create from blank**.
33
33
34
-

34
+
:::image type="content" source="./media/search-howto-powerapps/1-3-create-blank.png" alt-text="Create from blank menu" border="true":::
35
35
36
36
1. Give your custom connector a name. (that is, *AzureSearchQuery*), and then click **Continue**. This will bring up a wizard to create your new connector.
37
37
@@ -42,15 +42,16 @@ There are two main steps to having a PowerApp that shows Azure Cognitive Search
42
42
- In the Host, you will need to enter your search service URL (for instance, `<yourservicename>.search.windows.net`)
43
43
- For Base URL, simply enter "/"
44
44
45
-

45
+
:::image type="content" source="./media/search-howto-powerapps/1-5-general-info.png" alt-text="General information dialogue" border="true":::
46
46
47
47
1. In the Security Page, set *API Key* as the **Authentication Type**, set the parameter label, and parameter name fields as *api-key*. For **Parameter location**, select *Header* as shown below.
48
48
49
-

49
+
:::image type="content" source="./media/search-howto-powerapps/1-6-authentication-type.png" alt-text="Authentication type option" border="true":::
50
50
51
51
1. In the Definitions Page, select **+ New Action** to create an action that will query the index. Enter the value "Query" for the summary and the name of the operation ID. Enter a description like *"Queries the search index"*.
1. Select the type of application you would like. For this tutorial create a **Blank App** with the **Phone Layout**. The **Power Apps Studio** will appear.
121
121
122
122
1. Once in the studio, select the **Data Sources** tab, and click on the new Connector you have just created. In our case, it is called *AzureSearchQuery*. Click **Add a connection**.
This action will cause the button to update a new collection called *azResult* with the result of the search query, using the text in the *txtQuery* text box as the query term.
153
152
@@ -161,15 +160,14 @@ The goal of this tutorial is not to show you how to create fancy user experience
161
160
162
161
Since we provided a sample result when we defined the connector, the app is aware of the fields available in your index.
Remember that the fields can be set to calculated values.
169
-
For the example, setting using the *"Image, Title and Subtitle"* layout and specifying the *Image* function as the concatenation of the root path for the data and the file name (for instance, `"https://mystore.blob.core.windows.net/multilang/" & ThisItem.metadata_storage_name`) will produce the result below.
170
-
167
+
Remember that the fields can be set to calculated values.
168
+
For the example, setting using the *"Image, Title and Subtitle"* layout and specifying the *Image* function as the concatenation of the root path for the data and the file name (for instance, `"https://mystore.blob.core.windows.net/multilang/" & ThisItem.metadata_storage_name`) will produce the result below.
0 commit comments