Skip to content

Commit 6a7d8a9

Browse files
timayabi2020Microsoft Graph DevX Tooling
andauthored
Updating examples (#2294)
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
1 parent 5f9fb78 commit 6a7d8a9

File tree

5 files changed

+59
-27
lines changed

5 files changed

+59
-27
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Example 1: List all channels
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Teams
6+
7+
Get-MgBetaAllTeamChannel -TeamId $teamId
8+
9+
```
10+
This example will list all channels
11+
12+
### Example 2: List all shared channels
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Beta.Teams
17+
18+
Get-MgBetaAllTeamChannel -TeamId $teamId -Filter "membershipType eq 'shared'"
19+
20+
```
21+
This example will list all shared channels
22+

src/Teams/beta/examples/Get-MgBetaChatMember.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Teams
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Teams
6+
7+
Get-MgBetaChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId
8+
9+
```
10+
This example shows how to use the Get-MgBetaChatMember Cmdlet.
411

5-
Get-MgBetaChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId
6-
```
7-
This example shows how to use the Get-MgBetaChatMember Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Get-MgBetaChatPermissionGrant Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Teams
6+
47
Get-MgBetaChatPermissionGrant -ChatId $chatId
8+
59
```
610
This example shows how to use the Get-MgBetaChatPermissionGrant Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Example 1: List all channels
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Teams
6+
7+
Get-MgAllTeamChannel -TeamId $teamId
8+
9+
```
10+
This example will list all channels
11+
12+
### Example 2: List all shared channels
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Teams
17+
18+
Get-MgAllTeamChannel -TeamId $teamId -Filter "membershipType eq 'shared'"
19+
20+
```
21+
This example will list all shared channels
22+

0 commit comments

Comments
 (0)