Skip to content

Commit c6dfb5b

Browse files
committed
Formatting
1 parent 9ab4d8f commit c6dfb5b

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

articles/search/search-howto-powerapps.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,19 @@ A connector in Power Apps is a data source connection. In this step, you'll crea
6767

6868
1. Scroll down. In Requests, select **+ Import from sample** button to configure a query request to your search service:
6969

70-
* Select the verb `GET`
70+
* Select the verb `GET`
7171

72-
* For the URL enter a sample query for your search index (`search=*` returns all documents, `$select=` lets you choose fields). The API version is required. Fully specified, a URL might look like this: `https://mydemo.search.windows.net/indexes/hotels-sample-index/docs?search=*&$select=HotelName,Description,Address/City&api-version=2019-05-06`
72+
* For the URL enter a sample query for your search index (`search=*` returns all documents, `$select=` lets you choose fields). The API version is required. Fully specified, a URL might look like this: `https://mydemo.search.windows.net/indexes/hotels-sample-index/docs?search=*&$select=HotelName,Description,Address/City&api-version=2019-05-06`
7373

74-
* For Headers, type `Content-Type`.
74+
* For Headers, type `Content-Type`.
7575

76-
**Power Apps** will use the syntax to extract parameters from the query. Notice we explicitly defined the search field.
76+
**Power Apps** will use the syntax to extract parameters from the query. Notice we explicitly defined the search field.
7777

78-
:::image type="content" source="./media/search-howto-powerapps/1-8-1-import-from-sample.png" alt-text="Import from sample" border="false":::
78+
:::image type="content" source="./media/search-howto-powerapps/1-8-1-import-from-sample.png" alt-text="Import from sample" border="true":::
7979

8080
1. Click **Import** to auto-fill the Request. Complete setting the parameter metadata by clicking the **** symbol next to each of the parameters. Click **Back** to return to the Request page after each parameter update.
8181

82-
:::image type="content" source="./media/search-howto-powerapps/1-8-2-import-from-sample.png" alt-text="Import from sample dialogue" border="false":::
82+
:::image type="content" source="./media/search-howto-powerapps/1-8-2-import-from-sample.png" alt-text="Import from sample dialogue" border="true":::
8383

8484
1. For *search*: Set `*` as the **default value**, set **required** as *False* and set **visibility** to *none*.
8585

@@ -108,7 +108,9 @@ A connector in Power Apps is a data source connection. In this step, you'll crea
108108

109109
1. Return to the **3. Request** step and scroll down to the Response section. Click **"Add default response"**. This is critical because it will help Power Apps understand the schema of the response.
110110

111-
1. Paste a sample response. An easy way to capture a sample response is through Search Explorer in the Azure portal. In Search Explorer, you should enter the same query as you did for the request, but add **$top=2** to constrain results to just two documents. Power Apps only needs to sample a few results to detect the schema: `search=*&$select=HotelName,Description,Address/City&$top=2`
111+
1. Paste a sample response. An easy way to capture a sample response is through Search Explorer in the Azure portal. In Search Explorer, you should enter the same query as you did for the request, but add **$top=2** to constrain results to just two documents: : `search=*&$select=HotelName,Description,Address/City&$top=2`.
112+
113+
Power Apps only needs a few results to detect the schema.
112114

113115
```JSON
114116
{
@@ -210,14 +212,13 @@ In this step, create a Power App with a search box, a search button, and a displ
210212
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.
211213

212214
> [!NOTE]
213-
> If you get a formula syntax error "The function 'ClearCollect' has some invalid functions":
215+
> Try this if you get a formula syntax error "The function 'ClearCollect' has some invalid functions":
214216
>
215217
> * First, make sure the connector reference is correct. Clear the connector name and begin typing the name of your connector. Intellisense should suggest the right connector and verb.
216218
>
217219
> * If the error persists, delete and recreate the connector. If there are multiple instances of a connector, the app might be using the wrong one.
218220
>
219221

220-
221222
1. Link the Vertical Gallery control to the *azResult* collection that was created when you completed the previous step.
222223

223224
Select the gallery control, and perform the following actions in the properties pane.

0 commit comments

Comments
 (0)