Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
113 lines (79 loc) · 2.43 KB

File metadata and controls

113 lines (79 loc) · 2.43 KB

Set-PCSR

Updates a service request.

SYNTAX

Set-PCSR -ServiceRequest <PSObject> [-Status <String>] [-Title <String>] [-Description <String>] [-AddNote <String>] [-SaToken <String>] [<CommonParameters>]

DESCRIPTION

The Set-PCSR cmdlet updates a service request..

PARAMETERS

-ServiceRequest <PSObject>

Specifies the updated service request object used to update the service request.

Required?                    true
Position?                    named
Default value
Accept pipeline input?       true (ByValue, ByPropertyName)
Accept wildcard characters?  false

-Status <String>

Specifies whether the service request is open or closed. Valid values are: open and closed.

Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-Title <String>

Specifies the updated service request title.

Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-Description <String>

Specifies the updated service request description.

Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-AddNote <String>

Specifies a note to add to the service request.

Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-SaToken <String>

Specifies an authentication token with your Partner Center credentials.

Required?                    false
Position?                    named
Default value                $GlobalToken
Accept pipeline input?       false
Accept wildcard characters?  false

INPUTS

OUTPUTS

NOTES

EXAMPLES

EXAMPLE 1

Set all open service request for the specified tenant to closed.

PS C:\>$sr = Get-PCServiceRequest -TenantId 'e974093c-2a52-4ebd-994e-b3e7e0f90cf2' | Where-Object {$_.Status -eq 'open'}
PS C:\>Set-PCSR -ServiceRequest $sr -Status 'closed'

EXAMPLE 2

Add a note to an existing service request.

PS C:\>$sr = Get-PCServiceRequest -ServiceRequestId '615112491169010'
PS C:\>Set-PCSR -ServiceRequest $sr -AddNote 'After further testing, the problem is still occurring.'