Skip to content

Commit

Permalink
Merge pull request #2540 from microsoftgraph/WeeklyExamplesUpdate/202…
Browse files Browse the repository at this point in the history
…401231709

[v2] Examples Update
  • Loading branch information
timayabi2020 authored Jan 26, 2024
2 parents a00ce42 + ad2581e commit 614d390
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
### Example 1: {{ Add title here }}
### Example 1: Code snippet

```powershell
PS C:\> {{ Add code here }}
{{ Add output here }}
```
Import-Module Microsoft.Graph.Beta.Bookings
{{ Add description here }}
$params = @{
staffIds = @(
"311a5454-08b2-4560-ba1c-f715e938cb79"
)
startDateTime = @{
dateTime = "2022-01-25T00:00:00"
timeZone = "India Standard Time"
}
endDateTime = @{
dateTime = "2022-01-26T17:00:00"
timeZone = "Pacific Standard Time"
}
}
### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
Get-MgBetaBookingBusinessStaffAvailability -BookingBusinessId $bookingBusinessId -BodyParameter $params
{{ Add output here }}
```

{{ Add description here }}
This example shows how to use the Get-MgBetaBookingBusinessStaffAvailability Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Code snippet
### Example 1: List attendance records

```powershell
Expand All @@ -8,5 +8,5 @@ Import-Module Microsoft.Graph.CloudCommunications
Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId
```
This example shows how to use the Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord Cmdlet.
This example will list attendance records

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Code snippet
### Example 1: Get assignment categories

```powershell
Expand All @@ -7,5 +7,27 @@ Import-Module Microsoft.Graph.Beta.Education
Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId
```
This example shows how to use the Get-MgBetaEducationClassAssignmentCategory Cmdlet.
This example will get assignment categories

### Example 2: Using `$filter` to get assignment categories

```powershell
Import-Module Microsoft.Graph.Beta.Education
Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -Filter "id eq 'd4cb4f68-9136-48d3-9054-c1208ea274f0'"
```
This example shows using `$filter` to get assignment categories

### Example 3: Using `$orderby` to get assignment categories

```powershell
Import-Module Microsoft.Graph.Beta.Education
Get-MgBetaEducationClassAssignmentCategory -EducationClassId $educationClassId -Sort "displayName"
```
This example shows using `$orderby` to get assignment categories

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Code snippet
### Example 1: Get assignment categories

```powershell
Expand All @@ -7,5 +7,27 @@ Import-Module Microsoft.Graph.Education
Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId
```
This example shows how to use the Get-MgEducationClassAssignmentCategory Cmdlet.
This example will get assignment categories

### Example 2: Using `$filter` to get assignment categories

```powershell
Import-Module Microsoft.Graph.Education
Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -Filter "id eq 'd4cb4f68-9136-48d3-9054-c1208ea274f0'"
```
This example shows using `$filter` to get assignment categories

### Example 3: Using `$orderby` to get assignment categories

```powershell
Import-Module Microsoft.Graph.Education
Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -Sort "displayName"
```
This example shows using `$orderby` to get assignment categories

0 comments on commit 614d390

Please sign in to comment.