Skip to content

Commit ad2581e

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Updating examples
1 parent a00ce42 commit ad2581e

File tree

4 files changed

+68
-17
lines changed

4 files changed

+68
-17
lines changed
Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Code snippet
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
44
5-
{{ Add output here }}
6-
```
5+
Import-Module Microsoft.Graph.Beta.Bookings
76
8-
{{ Add description here }}
7+
$params = @{
8+
staffIds = @(
9+
"311a5454-08b2-4560-ba1c-f715e938cb79"
10+
)
11+
startDateTime = @{
12+
dateTime = "2022-01-25T00:00:00"
13+
timeZone = "India Standard Time"
14+
}
15+
endDateTime = @{
16+
dateTime = "2022-01-26T17:00:00"
17+
timeZone = "Pacific Standard Time"
18+
}
19+
}
920
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
21+
Get-MgBetaBookingBusinessStaffAvailability -BookingBusinessId $bookingBusinessId -BodyParameter $params
1322
14-
{{ Add output here }}
1523
```
16-
17-
{{ Add description here }}
24+
This example shows how to use the Get-MgBetaBookingBusinessStaffAvailability Cmdlet.
1825

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: List attendance records
22

33
```powershell
44
@@ -8,5 +8,5 @@ Import-Module Microsoft.Graph.CloudCommunications
88
Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId
99
1010
```
11-
This example shows how to use the Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord Cmdlet.
11+
This example will list attendance records
1212

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Get assignment categories
22

33
```powershell
44
@@ -7,5 +7,27 @@ Import-Module Microsoft.Graph.Beta.Education
77
Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId
88
99
```
10-
This example shows how to use the Get-MgBetaEducationClassAssignmentCategory Cmdlet.
10+
This example will get assignment categories
11+
12+
### Example 2: Using `$filter` to get assignment categories
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Beta.Education
17+
18+
Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -Filter "id eq 'd4cb4f68-9136-48d3-9054-c1208ea274f0'"
19+
20+
```
21+
This example shows using `$filter` to get assignment categories
22+
23+
### Example 3: Using `$orderby` to get assignment categories
24+
25+
```powershell
26+
27+
Import-Module Microsoft.Graph.Beta.Education
28+
29+
Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -Sort "displayName"
30+
31+
```
32+
This example shows using `$orderby` to get assignment categories
1133

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Get assignment categories
22

33
```powershell
44
@@ -7,5 +7,27 @@ Import-Module Microsoft.Graph.Education
77
Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId
88
99
```
10-
This example shows how to use the Get-MgEducationClassAssignmentCategory Cmdlet.
10+
This example will get assignment categories
11+
12+
### Example 2: Using `$filter` to get assignment categories
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Education
17+
18+
Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -Filter "id eq 'd4cb4f68-9136-48d3-9054-c1208ea274f0'"
19+
20+
```
21+
This example shows using `$filter` to get assignment categories
22+
23+
### Example 3: Using `$orderby` to get assignment categories
24+
25+
```powershell
26+
27+
Import-Module Microsoft.Graph.Education
28+
29+
Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -Sort "displayName"
30+
31+
```
32+
This example shows using `$orderby` to get assignment categories
1133

0 commit comments

Comments
 (0)