external help file: ConnectWiseManageAPI-help.xml Module Name: ConnectWiseManageAPI online version: schema: 2.0.0
This function will list documents associated with a record.
Get-CWMDocument [-id <Int32>] [-count] [-condition <String>] [-orderBy <String>] [-childConditions <String>]
[-customFieldConditions <String>] [[-page] <Int32>] [[-pageSize] <Int32>] [-fields <String[]>] [-all]
[<CommonParameters>]
Get-CWMDocument -recordId <Int32> -recordType <String> [-count] [-condition <String>] [-orderBy <String>]
[-childConditions <String>] [-customFieldConditions <String>] [[-page] <Int32>] [[-pageSize] <Int32>]
[-fields <String[]>] [-all] [<CommonParameters>]
Gets a document associated with a record.
Get-CWMDocuments -recordType Ticket -recordId 1836414Will return documents associated with a the ticket 1936414
Used in pagination to cycle through results
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: FalseNumber of results returned per page (Defaults to 25)
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: 0
Accept pipeline input: False
Accept wildcard characters: FalseReturn all results
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseAllows searching arrays on endpoints that list childConditions under parameters
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis 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: FalseAllows 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: FalseAllows 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: FalseThe ID of the document you want to retrieve.
Type: Int32
Parameter Sets: ID
Aliases: documentId
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseChoose 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: FalseThe ID of the record that holds the document you are looking for.
Type: Int32
Parameter Sets: Record
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe type of record you are looking to retrieve.
Type: String
Parameter Sets: Record
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseWill 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: FalseThis 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: 8/22/2018
https://developer.connectwise.com/manage/rest?a=System&e=Documents&o=GET