| external help file | ConnectWiseManageAPI-help.xml |
|---|---|
| Module Name | ConnectWiseManageAPI |
| online version | https://marketplace.connectwise.com/docs/redoc/manage/company.html#tag/ContactCommunications/paths/~1company~1contacts~1{id}~1communications/post |
| schema | 2.0.0 |
This function will create a new contact communication.
New-CWMContactCommunication -parentId <Int32> [[-id] <Int32>] [-type] <Hashtable> [-value] <String>
[[-extension] <String>] [[-defaultFlag] <Boolean>] [[-mobileGuid] <Guid>] [[-_info] <Hashtable>] [-WhatIf]
[-Confirm] [<CommonParameters>]
{{ Fill in the Description }}
New-CWMContactCommunication -id 7125 -type @{'name' = 'Private Email'} -value 'don't@email.me'Will add a Private Email address to the contact with the id of 7125.
New-CWMContactCommunication -id 7125 -type @{'id' = '2'} -value '6054756968' -extension 555 -defaultFlag $trueWill add a direct phone number with an extension to the contact with the id of 7125 and set it as the default communication method.
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseMetadata
Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSet to $true if you want to set as the default contact method.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseIf your type is a phone number you can add an extension.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe id of the contact you want to update.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: 0
Accept pipeline input: False
Accept wildcard characters: Falsedon't use?
Type: Guid
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe type of communication you are adding. You can add by name or id. @{'id' = 5} or @{'name' = 'Pager'}
Type: Hashtable
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe email or phone number you want to add.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{ Fill parentId Description }}
Type: Int32
Parameter Sets: (All)
Aliases: contactId
Required: True
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: 9/26/2019