Skip to content

Commit d749015

Browse files
committed
Rectified platyps example issues on getmguserContace
1 parent f7cb797 commit d749015

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.PersonalContacts/Get-MgUserContact.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ There are two scenarios where an app can get a contact in another user's contact
4444
### EXAMPLE 1
4545
```
4646
Import-Module Microsoft.Graph.PersonalContacts
47-
```
4847
4948
# A UPN can also be used as -UserId.
5049
Get-MgUserContact -UserId $userId -ContactId $contactId
5150
51+
```
5252
## PARAMETERS
5353

5454
### -All
@@ -275,3 +275,4 @@ INPUTOBJECT \<IPersonalContactsIdentity\>: Identity Parameter
275275
276276
[https://learn.microsoft.com/powershell/module/microsoft.graph.personalcontacts/get-mgusercontact](https://learn.microsoft.com/powershell/module/microsoft.graph.personalcontacts/get-mgusercontact)
277277
278+

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.PersonalContacts/Get-MgUserContactFolderContact.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ Nullable.
4848
### EXAMPLE 1
4949
```
5050
Import-Module Microsoft.Graph.PersonalContacts
51-
```
5251
5352
# A UPN can also be used as -UserId.
5453
Get-MgUserContactFolderContact -UserId $userId -ContactFolderId $contactFolderId
5554
55+
```
5656
## PARAMETERS
5757

5858
### -All
@@ -279,3 +279,4 @@ INPUTOBJECT \<IPersonalContactsIdentity\>: Identity Parameter
279279
280280
[https://learn.microsoft.com/powershell/module/microsoft.graph.personalcontacts/get-mgusercontactfoldercontact](https://learn.microsoft.com/powershell/module/microsoft.graph.personalcontacts/get-mgusercontactfoldercontact)
281281
282+

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.PersonalContacts/New-MgUserContact.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ Add a contact to the root Contacts folder or to the contacts endpoint of another
7373
### EXAMPLE 1
7474
```
7575
Import-Module Microsoft.Graph.PersonalContacts
76-
```
7776
7877
$params = @{
7978
givenName = "Pavel"
@@ -92,6 +91,7 @@ $params = @{
9291
# A UPN can also be used as -UserId.
9392
New-MgUserContact -UserId $userId -BodyParameter $params
9493
94+
```
9595
## PARAMETERS
9696

9797
### -AdditionalProperties
@@ -1016,3 +1016,4 @@ Read-only.
10161016
10171017
[https://learn.microsoft.com/powershell/module/microsoft.graph.personalcontacts/new-mgusercontact](https://learn.microsoft.com/powershell/module/microsoft.graph.personalcontacts/new-mgusercontact)
10181018
1019+

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.PersonalContacts/New-MgUserContactFolderContact.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ Add a contact to the root Contacts folder or to the \`contacts\` endpoint of ano
7373
### EXAMPLE 1
7474
```
7575
Import-Module Microsoft.Graph.PersonalContacts
76-
```
7776
7877
$params = @{
7978
parentFolderId = "parentFolderId-value"
@@ -87,6 +86,7 @@ $params = @{
8786
# A UPN can also be used as -UserId.
8887
New-MgUserContactFolderContact -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params
8988
89+
```
9090
## PARAMETERS
9191

9292
### -AdditionalProperties
@@ -1026,3 +1026,4 @@ Read-only.
10261026
10271027
[https://learn.microsoft.com/powershell/module/microsoft.graph.personalcontacts/new-mgusercontactfoldercontact](https://learn.microsoft.com/powershell/module/microsoft.graph.personalcontacts/new-mgusercontactfoldercontact)
10281028
1029+

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.PersonalContacts/Remove-MgUserContact.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ Delete a contact.
3535
### EXAMPLE 1
3636
```
3737
Import-Module Microsoft.Graph.PersonalContacts
38-
```
3938
4039
# A UPN can also be used as -UserId.
4140
Remove-MgUserContact -UserId $userId -ContactId $contactId
4241
42+
```
4343
## PARAMETERS
4444

4545
### -ContactId
@@ -176,3 +176,4 @@ INPUTOBJECT \<IPersonalContactsIdentity\>: Identity Parameter
176176
177177
[https://learn.microsoft.com/powershell/module/microsoft.graph.personalcontacts/remove-mgusercontact](https://learn.microsoft.com/powershell/module/microsoft.graph.personalcontacts/remove-mgusercontact)
178178
179+

scripts/RewriteExamples.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ function Copy-Files{
7373
$WrongExampleWithExtraSpace = "```````r`n`Import-Module $Path`r`n``````"
7474
$GoodExample = "``````powershell`r`nImport-Module $Path"
7575
$GoodExample2 = "```````r`n`Import-Module $Path"
76-
Write-Host $WrongExample
7776
$WrongExampleWithRegex = "``````powershell(?s).*``````"
7877

7978
$Endpath1 = "```````r`n## PARAMETERS"

0 commit comments

Comments
 (0)