Skip to content

Commit 5b527bf

Browse files
authored
Fix Important/Note formatting.
1 parent 097b609 commit 5b527bf

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/spfx/call-microsoft-graph-using-graphhttpclient.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Use GraphHttpClient to call Microsoft Graph
2-
>**Important:** The **GraphHttpClient** is currently in preview and is subject to change. It is not currently supported for use in production environments.
2+
> [!IMPORTANT]
3+
>The **GraphHttpClient** is currently in preview and is subject to change. It is not currently supported for use in production environments.
34
45
Use the **GraphHttpClient** class to make calls to the Microsoft Graph REST API. You can make GET, POST, and PATCH requests using the **get()**, **post()**, and **fetch()** methods. This article shows how to build a web part that uses **GraphHttpClient**, but you can use **GraphHttpClient** in any SharePoint Framework client code.
56

@@ -273,20 +274,21 @@ Again, you need to modify the HTML to add a button that will create a new group.
273274
* Because your solution is already registered, you'll be prompted as to whether you want to replace it. Choose **Replace it**.
274275
* When prompted as to whether you trust the solution, choose **Deploy**.
275276

276-
3, Use gulp serve to host the web part.
277+
3. Use gulp serve to host the web part.
277278

278279
```
279280
gulp serve --nobrowser
280281
```
281282

282-
4, Add the web part to a web page, or use the SharePoint workbench.
283+
4. Add the web part to a web page, or use the SharePoint workbench.
283284

284285
You should see the following on your page.
285286
![GraphHttpClient web part with create group button indicating group was created successfully](../images/graphhttpclient-group-created.jpg)
286287

287-
5, When you choose **Create New Group**, the code will create a new Office 365 group.
288+
5. When you choose **Create New Group**, the code will create a new Office 365 group.
288289

289-
>**Note:** If you try to create the same group again, the code will return an error because the group already exists. The error is logged to the console, which you can view in the browser's developer mode.
290+
> [!NOTE]
291+
>If you try to create the same group again, the code will return an error because the group already exists. The error is logged to the console, which you can view in the browser's developer mode.
290292
291293
## Update a group using a PATCH call
292294

@@ -313,4 +315,4 @@ The following code shows how to call the **fetch()** method to update an existin
313315
});
314316
```
315317

316-
The ID of the group is specified in the URL. Get the ID by using a GET call first. The **method** parameter is set to **PATCH**. The body specifies which group properties to modify.
318+
The ID of the group is specified in the URL. Get the ID by using a GET call first. The **method** parameter is set to **PATCH**. The body specifies which group properties to modify.

0 commit comments

Comments
 (0)