< Back

New-SmaServiceDeskTicket

Thu Jan 16, 2020 9:48 am

NAME New-SmaServiceDeskTicket



SYNOPSIS







SYNTAX

New-SmaServiceDeskTicket [-Body] <Hashtable> [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Creates a new SMA service desk ticket.





PARAMETERS

-Body <Hashtable>

A hashtable-formatted payload containing the ticket information. See example.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

PSCustomObject







NOTES









-------------------------- EXAMPLE 1 --------------------------



PS> $NewTicket = @{

'Tickets' =@(

@{

'title' = 'test-ticket'

'hd_queue_id' = 7 # queue ID

'submitter' = 10 # submitter ID

'category' = 1 # category ID

"custom_1" = 'my_custom_text'

}

)

}



PS> New-SmaTicket -Body $NewTicket



Creates a new SMA ticket for a user with ID of 1234



RELATED LINKS

Online Version: https://github.com/ArtisanByteCrafter/K ... kTicket.md