external help file: ConnectWiseManageAPI-help.xml Module Name: ConnectWiseManageAPI online version: schema: 2.0.0
This function will get the audit trail of an item in ConnectWise.
Get-CWMAuditTrail [-type] <Object> [-id] <String> [-count] [[-deviceIdentifier] <String>] [-condition <String>]
[-orderBy <String>] [[-childConditions] <String>] [-customFieldConditions <String>] [[-page] <Int32>]
[[-pageSize] <Int32>] [-fields <String[]>] [-all] [<CommonParameters>]
This function will get the audit trail of an item in ConnectWise.
Get-CWMAuditTrail -Type Ticket -id 1
Will return the audit trail for ticket 1
Allows searching arrays on endpoints that list childConditions under parameters
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
?
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Used in pagination to cycle through results
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
Number of results returned per page (Defaults to 25)
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
Return all results
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This is your search condition to return the results you desire.
Example: (contact/name like "Fred%" and closedFlag = false) and dateEntered \> \[2015-12-23T05:53:27Z\] or summary contains "test" AND summary != "Some Summary"
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Allows searching custom fields when customFieldConditions is listed in the parameters
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Allows you to return a partial response with just the fields listed.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Choose which field to sort the results by, 'field/sub desc' or 'field/sub asc'
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The id the the item you want the audit trail of.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Ticket, ProductCatalog, Configuration, PurchaseOrder, Expense
Type: Object
Parameter Sets: (All)
Aliases:
Accepted values: Ticket, ProductCatalog, Configuration, PurchaseOrder, Expense
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Will return the number of objects.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Chris Taylor Date: 10/29/2018
No support for forward only pagination at this time.
https://developer.connectwise.com/products/manage/rest?a=System&e=AuditTrail&o=GET