Skip to content

Latest commit

 

History

History
332 lines (293 loc) · 16.1 KB

New-CWMTimeEntry.md

File metadata and controls

332 lines (293 loc) · 16.1 KB

New-CWMTimeEntry

SYNOPSIS

This function will create a new time entry.

SYNTAX

New-CWMTimeEntry [[-id] <Int32>] [-company] <Object> [-chargeToId] <Int32> [-chargeToType] <Object> [[-member] <Object>] [[-locationId] <Int32>] [[-businessUnitId] <Int32>] [[-workType] <Object>] [[-workRole] <Object>] [[-agreement] <Object>] [[-timeStart] <String>] [[-timeEnd] <String>] [[-hoursDeduct] <Double>] [[-actualHours] <Double>] [[-billableOption] <Object>] [[-notes] <String>] [[-internalNotes] <String>] [[-addToDetailDescriptionFlag] <Boolean>] [[-addToInternalAnalysisFlag] 

<Boolean>] [[-addToResolutionFlag] <Boolean>] [[-emailResourceFlag] <Boolean>] [[-emailContactFlag] <Boolean>] [[-emailCcFlag] <Boolean>] [[-emailCc] <String>] [[-hoursBilled] <Double>] [[-enteredBy] <String>] [[-dateEntered] <String>] [[-invoice] <Object>] [[-mobileGuid] <Guid>] [[-hourlyRate] <Double>] [[-timeSheet] <Object>] [[-status] <Object>] [[-_info] <Object>] [[-customFields] <Object>] [<CommonParameters>]

PARAMETERS

-id <Int32>

Required                    false
Position                    1
Default value                0
Accept pipeline input       false
Accept wildcard characters  false

-company <Object>

Required                    true
Position                    2
Default value
Accept pipeline input       false
Accept wildcard characters  false

-chargeToId <Int32>

Required                    true
Position                    3
Default value                0
Accept pipeline input       false
Accept wildcard characters  false

-chargeToType <Object>

Required                    true
Position                    4
Default value
Accept pipeline input       false
Accept wildcard characters  false

-member <Object>

Required                    false
Position                    5
Default value
Accept pipeline input       false
Accept wildcard characters  false

-locationId <Int32>

Required                    false
Position                    6
Default value                0
Accept pipeline input       false
Accept wildcard characters  false

-businessUnitId <Int32>

Required                    false
Position                    7
Default value                0
Accept pipeline input       false
Accept wildcard characters  false

-workType <Object>

Required                    false
Position                    8
Default value
Accept pipeline input       false
Accept wildcard characters  false

-workRole <Object>

Required                    false
Position                    9
Default value
Accept pipeline input       false
Accept wildcard characters  false

-agreement <Object>

Required                    false
Position                    10
Default value
Accept pipeline input       false
Accept wildcard characters  false

-timeStart <String>

Required                    false
Position                    11
Default value
Accept pipeline input       false
Accept wildcard characters  false

-timeEnd <String>

Required                    false
Position                    12
Default value
Accept pipeline input       false
Accept wildcard characters  false

-hoursDeduct <Double>

Required                    false
Position                    13
Default value                0
Accept pipeline input       false
Accept wildcard characters  false

-actualHours <Double>

Required                    false
Position                    14
Default value                0
Accept pipeline input       false
Accept wildcard characters  false

-billableOption <Object>

Required                    false
Position                    15
Default value
Accept pipeline input       false
Accept wildcard characters  false

-notes <String>

Required                    false
Position                    16
Default value
Accept pipeline input       false
Accept wildcard characters  false

-internalNotes <String>

Required                    false
Position                    17
Default value
Accept pipeline input       false
Accept wildcard characters  false

-addToDetailDescriptionFlag <Boolean>

Required                    false
Position                    18
Default value                False
Accept pipeline input       false
Accept wildcard characters  false

-addToInternalAnalysisFlag <Boolean>

Required                    false
Position                    19
Default value                False
Accept pipeline input       false
Accept wildcard characters  false

-addToResolutionFlag <Boolean>

Required                    false
Position                    20
Default value                False
Accept pipeline input       false
Accept wildcard characters  false

-emailResourceFlag <Boolean>

Required                    false
Position                    21
Default value                False
Accept pipeline input       false
Accept wildcard characters  false

-emailContactFlag <Boolean>

Required                    false
Position                    22
Default value                False
Accept pipeline input       false
Accept wildcard characters  false

-emailCcFlag <Boolean>

Required                    false
Position                    23
Default value                False
Accept pipeline input       false
Accept wildcard characters  false

-emailCc <String>

Required                    false
Position                    24
Default value
Accept pipeline input       false
Accept wildcard characters  false

-hoursBilled <Double>

Required                    false
Position                    25
Default value                0
Accept pipeline input       false
Accept wildcard characters  false

-enteredBy <String>

Required                    false
Position                    26
Default value
Accept pipeline input       false
Accept wildcard characters  false

-dateEntered <String>

Required                    false
Position                    27
Default value
Accept pipeline input       false
Accept wildcard characters  false

-invoice <Object>

Required                    false
Position                    28
Default value
Accept pipeline input       false
Accept wildcard characters  false

-mobileGuid <Guid>

Required                    false
Position                    29
Default value
Accept pipeline input       false
Accept wildcard characters  false

-hourlyRate <Double>

Required                    false
Position                    30
Default value                0
Accept pipeline input       false
Accept wildcard characters  false

-timeSheet <Object>

Required                    false
Position                    31
Default value
Accept pipeline input       false
Accept wildcard characters  false

-status <Object>

Required                    false
Position                    32
Default value
Accept pipeline input       false
Accept wildcard characters  false

-_info <Object>

Required                    false
Position                    33
Default value
Accept pipeline input       false
Accept wildcard characters  false

-customFields <Object>

Required                    false
Position                    34
Default value
Accept pipeline input       false
Accept wildcard characters  false

EXAMPLES

EXAMPLE 1

PS C:\>New-CWMTimeEntry

Create a new <SOMETHING>.

NOTES

Author: Chris Taylor

Date: 1/7/2019

LINKS

http://labtechconsulting.com

https://developer.connectwise.com/manage/rest?a=Time&e=TimeEntries&o=CREATE