diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md index e69de29bb2d..d05037861a5 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md @@ -0,0 +1,11 @@ +### Example + +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet. + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md index ce3990f381e..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md @@ -1,11 +0,0 @@ -### Example - -```powershell - -Import-Module Microsoft.Graph.Applications - -Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId - -``` -This example shows how to use the Get-MgServicePrincipalSynchronizationTemplate Cmdlet. - diff --git a/src/Sites/beta/examples/Get-MgBetaSiteListItem.md b/src/Sites/beta/examples/Get-MgBetaSiteListItem.md index a7ee9de515c..186517bf904 100644 --- a/src/Sites/beta/examples/Get-MgBetaSiteListItem.md +++ b/src/Sites/beta/examples/Get-MgBetaSiteListItem.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Get list items with specific fields ```powershell @@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Beta.Sites Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" ``` -This example shows how to use the Get-MgBetaSiteListItem Cmdlet. +This example will get list items with specific fields + +### Example 2: Get filtered list items with specific fields + +```powershell + +Import-Module Microsoft.Graph.Beta.Sites + +Get-MgBetaSiteListItem -SiteId $siteId -ListId $listId -ExpandProperty "fields(select=Name,Color,Quantity)" -Filter "fields/Quantity lt 600" + +``` +This example will get filtered list items with specific fields