From 9b7ffc907ffdb1a15b0a55a3245c57aa4643ca97 Mon Sep 17 00:00:00 2001 From: Adam Wilson Date: Thu, 10 Apr 2025 11:13:02 +0000 Subject: [PATCH 1/3] adding initial changes --- .../ConnectWiseManageAPI.psd1 | Bin 17632 -> 17914 bytes ConnectWiseManageAPI/PSGetModuleInfo.xml | 472 ++++++++++++++++++ .../Get-CWMProjectTicketAllNote.ps1 | 22 + .../Get-CWMProjectTicketNote.ps1 | 22 + .../New-CWMProjectTicketNote.ps1 | 26 + .../Remove-CWMProjectTicketNote.ps1 | 14 + .../Templates/Get-CWMServiceTemplates.ps1 | 18 + .../Templates/Get-CWMServiceTemplatesInfo.ps1 | 18 + 8 files changed, 592 insertions(+) create mode 100644 ConnectWiseManageAPI/PSGetModuleInfo.xml create mode 100644 ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketAllNote.ps1 create mode 100644 ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketNote.ps1 create mode 100644 ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/New-CWMProjectTicketNote.ps1 create mode 100644 ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Remove-CWMProjectTicketNote.ps1 create mode 100644 ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplates.ps1 create mode 100644 ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplatesInfo.ps1 diff --git a/ConnectWiseManageAPI/ConnectWiseManageAPI.psd1 b/ConnectWiseManageAPI/ConnectWiseManageAPI.psd1 index 7e0251273f7226fb8d665601415647836f121972..7575e6a87f20e508579f957b533f1782ec7efb24 100644 GIT binary patch delta 97 zcmaFR$@r_AaljQ7q$mGUmzumsS7vg7 tGTS5#5g?OqvVtDp&G?{`al + + + Microsoft.PowerShell.Commands.PSRepositoryItemInfo + System.Management.Automation.PSCustomObject + System.Object + + + ConnectWiseManageAPI + 0.4.15.0 + Module + PowerShell wrapper for the ConnectWise Manage REST API + Chris Taylor + ChrisTaylorCodes + (c) 2020 Chris Taylor. All rights reserved. +
2024-09-04T00:44:17-04:00
+ +
2025-03-27T08:16:57.0864172-04:00
+ + + + Microsoft.PowerShell.Commands.DisplayHintType + System.Enum + System.ValueType + System.Object + + DateTime + 2 + + +
+ + https://github.com/christaylorcodes/ConnectWiseManageAPI/blob/master/LICENSE + https://github.com/christaylorcodes/ConnectWiseManageAPI + https://raw.githubusercontent.com/christaylorcodes/ConnectWiseManageAPI/master/Media/Manage-Icon.png + + + System.Object[] + System.Array + System.Object + + + ChrisTaylorCodes + ConnectWise + Manage + REST + API + PSModule + + + + + System.Collections.Hashtable + System.Object + + + + Workflow + + + + + + + Command + + + + Connect-CWM + Disconnect-CWM + Get-CWMCommunicationType + Get-CWMCompany + New-CWMCompany + Remove-CWMCompany + Update-CWMCompany + Get-CWMCompanyTypeAssociation + New-CWMCompanyTypeAssociation + Remove-CWMCompanyTypeAssociation + Update-CWMCompanyTypeAssociation + Get-CWMCompanyNote + New-CWMCompanyNote + Remove-CWMCompanyNote + Get-CWMCompanyNoteType + Get-CWMCompanySite + New-CWMCompanySite + Remove-CWMCompanySite + Update-CWMCompanySite + Get-CWMCompanyState + Get-CWMCompanyStatus + Remove-CWMCompanyStatus + Get-CWMCompanyTeam + New-CWMCompanyTeam + Remove-CWMCompanyTeam + Update-CWMCompanyTeam + Get-CWMCompanyType + Get-CWMCompanyConfiguration + Get-CWMCompanyConfigurationType + New-CWMCompanyConfiguration + New-CWMCompanyConfigurationTypeQuestionValue + Remove-CWMCompanyConfiguration + Update-CWMCompanyConfiguration + Update-CWMCompanyConfigurationTypeQuestionValue + New-CWMContactCommunication + Remove-CWMContactCommunication + Update-CWMContactCommunication + Get-CWMCompanyContactNote + New-CWMCompanyContactNote + Remove-CWMCompanyContactNote + Get-CWMCompanyContact + Get-CWMContactType + New-CWMCompanyContact + Remove-CWMCompanyContact + Update-CWMCompanyContact + Get-CWMCompanyCountry + Get-CWMCompanyTeamRole + Get-CWMAgreementAddition + New-CWMAgreementAddition + Remove-CWMAgreementAddition + Update-CWMAgreementAddition + Get-CWMAgreement + New-CWMAgreement + Update-CWMAgreement + Get-CWMAgreementSite + Remove-CWMAgreementSite + Get-CWMAgreementTypes + New-CWMAgreementTypes + Update-CWMAgreementTypes + ConvertFrom-CWMTime + ConvertTo-CWMTime + Get-CWMChargeCode + New-CWMDebugReport + Get-CWMMarketingGroupCompany + New-CWMMarketingGroupCompany + Remove-CWMMarketingGroupCompany + Get-CWMMarketingGroupContact + Get-CWMMarketingGroup + Get-CWMProductAdjustment + Get-CWMProductAdjustmentDetail + New-CWMProductAdjustment + New-CWMProductAdjustmentDetail + Update-CWMProductAdjustment + Get-CWMProductCatalog + New-CWMProductCatalog + Update-CWMProductCatalog + Get-CWMManufacturer + Get-CWMProductComponent + Get-CWMProduct + Get-CWMProductType + Get-CWMPurchaseOrder + Get-CWMPurchaseOrderLineItem + Update-CWMPurchaseOrder + Get-CWMProductSubCategory + Get-CWMInventory + Get-CWMWarehouse + Get-CWMWarehouseBin + Get-CWMProjectPhase + New-CWMProjectPhase + Update-CWMProjectPhase + Get-CWMProject + Update-CWMProject + Get-CWMProjectSecurityRole + Get-CWMProjectTeamMember + New-CWMProjectTeamMember + Get-CWMProjectTicket + Update-CWMProjectTicket + Get-CWMSalesActivity + Get-CWMScheduleHoliday + Get-CWMScheduleHolidayList + Get-CWMScheduleEntry + New-CWMScheduleEntry + Remove-CWMScheduleEntry + Update-CWMScheduleEntry + Get-CWMServiceBoardInfo + Get-CWMBoardItem + New-CWMBoardItem + Get-CWMBoardItemAssociation + Update-CWMBoardItemAssociation + Get-CWMServiceBoard + New-CWMServiceBoard + Get-CWMBoardStatus + Get-CWMBoardStatusNotification + Get-CWMBoardSubtype + Get-CWMBoardTeam + Get-CWMBoardType + Get-CWMBoardTypeSubTypeItemAssociation + New-CWMTicketChild + Get-CWMPriority + Get-CWMSLA + Get-CWMSource + Get-CWMTicketConfiguration + New-CWMTicketConfiguration + Remove-CWMTicketConfiguration + Get-CWMTicketAllNote + Get-CWMTicketNote + New-CWMTicketNote + Remove-CWMTicketNote + Get-CWMTicket + New-CWMTicket + Remove-CWMTicket + Update-CWMTicket + Get-CWMTicketTask + New-CWMTicketTask + Get-CWMAuditTrail + Get-CWMCallbackEntry + New-CWMCallbackEntry + Remove-CWMCallbackEntry + Update-CWMCallbackEntry + Get-CWMDepartment + Get-CWMDepartmentLocation + Get-CWMDocument + New-CWMDocument + Remove-CWMDocument + Get-CWMMember + New-CWMMember + New-CWMMemberToken + Update-CWMMember + Get-CWMReport + Get-CWMReportColumn + Get-CWMSSOConfiguration + Update-CWMSSOConfiguration + Get-CWMMyMember + Get-CWMMySecurity + Get-CWMSystemInfo + Get-CWMTimeEntry + New-CWMTimeEntry + Remove-CWMTimeEntry + Update-CWMTimeEntry + Get-CWMTimeSheet + Submit-CWMTimeSheet + Update-CWMTimeSheet + Remove-CWMProjectTicketNote + New-CWMProjectTicketNote + Get-CWMProjectTicketAllNote + Get-CWMProjectTicketNote + Import-Module 'ConnectWiseManageAPI' + + + + + Function + + + + Connect-CWM + Disconnect-CWM + Get-CWMCommunicationType + Get-CWMCompany + New-CWMCompany + Remove-CWMCompany + Update-CWMCompany + Get-CWMCompanyTypeAssociation + New-CWMCompanyTypeAssociation + Remove-CWMCompanyTypeAssociation + Update-CWMCompanyTypeAssociation + Get-CWMCompanyNote + New-CWMCompanyNote + Remove-CWMCompanyNote + Get-CWMCompanyNoteType + Get-CWMCompanySite + New-CWMCompanySite + Remove-CWMCompanySite + Update-CWMCompanySite + Get-CWMCompanyState + Get-CWMCompanyStatus + Remove-CWMCompanyStatus + Get-CWMCompanyTeam + New-CWMCompanyTeam + Remove-CWMCompanyTeam + Update-CWMCompanyTeam + Get-CWMCompanyType + Get-CWMCompanyConfiguration + Get-CWMCompanyConfigurationType + New-CWMCompanyConfiguration + New-CWMCompanyConfigurationTypeQuestionValue + Remove-CWMCompanyConfiguration + Update-CWMCompanyConfiguration + Update-CWMCompanyConfigurationTypeQuestionValue + New-CWMContactCommunication + Remove-CWMContactCommunication + Update-CWMContactCommunication + Get-CWMCompanyContactNote + New-CWMCompanyContactNote + Remove-CWMCompanyContactNote + Get-CWMCompanyContact + Get-CWMContactType + New-CWMCompanyContact + Remove-CWMCompanyContact + Update-CWMCompanyContact + Get-CWMCompanyCountry + Get-CWMCompanyTeamRole + Get-CWMAgreementAddition + New-CWMAgreementAddition + Remove-CWMAgreementAddition + Update-CWMAgreementAddition + Get-CWMAgreement + New-CWMAgreement + Update-CWMAgreement + Get-CWMAgreementSite + Remove-CWMAgreementSite + Get-CWMAgreementTypes + New-CWMAgreementTypes + Update-CWMAgreementTypes + ConvertFrom-CWMTime + ConvertTo-CWMTime + Get-CWMChargeCode + New-CWMDebugReport + Get-CWMMarketingGroupCompany + New-CWMMarketingGroupCompany + Remove-CWMMarketingGroupCompany + Get-CWMMarketingGroupContact + Get-CWMMarketingGroup + Get-CWMProductAdjustment + Get-CWMProductAdjustmentDetail + New-CWMProductAdjustment + New-CWMProductAdjustmentDetail + Update-CWMProductAdjustment + Get-CWMProductCatalog + New-CWMProductCatalog + Update-CWMProductCatalog + Get-CWMManufacturer + Get-CWMProductComponent + Get-CWMProduct + Get-CWMProductType + Get-CWMPurchaseOrder + Get-CWMPurchaseOrderLineItem + Update-CWMPurchaseOrder + Get-CWMProductSubCategory + Get-CWMInventory + Get-CWMWarehouse + Get-CWMWarehouseBin + Get-CWMProjectPhase + New-CWMProjectPhase + Update-CWMProjectPhase + Get-CWMProject + Update-CWMProject + Get-CWMProjectSecurityRole + Get-CWMProjectTeamMember + New-CWMProjectTeamMember + Get-CWMProjectTicket + Update-CWMProjectTicket + Get-CWMSalesActivity + Get-CWMScheduleHoliday + Get-CWMScheduleHolidayList + Get-CWMScheduleEntry + New-CWMScheduleEntry + Remove-CWMScheduleEntry + Update-CWMScheduleEntry + Get-CWMServiceBoardInfo + Get-CWMBoardItem + New-CWMBoardItem + Get-CWMBoardItemAssociation + Update-CWMBoardItemAssociation + Get-CWMServiceBoard + New-CWMServiceBoard + Get-CWMBoardStatus + Get-CWMBoardStatusNotification + Get-CWMBoardSubtype + Get-CWMBoardTeam + Get-CWMBoardType + Get-CWMBoardTypeSubTypeItemAssociation + New-CWMTicketChild + Get-CWMPriority + Get-CWMSLA + Get-CWMSource + Get-CWMTicketConfiguration + New-CWMTicketConfiguration + Remove-CWMTicketConfiguration + Get-CWMTicketAllNote + Get-CWMTicketNote + New-CWMTicketNote + Remove-CWMTicketNote + Get-CWMTicket + New-CWMTicket + Remove-CWMTicket + Update-CWMTicket + Get-CWMTicketTask + New-CWMTicketTask + Get-CWMAuditTrail + Get-CWMCallbackEntry + New-CWMCallbackEntry + Remove-CWMCallbackEntry + Update-CWMCallbackEntry + Get-CWMDepartment + Get-CWMDepartmentLocation + Get-CWMDocument + New-CWMDocument + Remove-CWMDocument + Get-CWMMember + New-CWMMember + New-CWMMemberToken + Update-CWMMember + Get-CWMReport + Get-CWMReportColumn + Get-CWMSSOConfiguration + Update-CWMSSOConfiguration + Get-CWMMyMember + Get-CWMMySecurity + Get-CWMSystemInfo + Get-CWMTimeEntry + New-CWMTimeEntry + Remove-CWMTimeEntry + Update-CWMTimeEntry + Get-CWMTimeSheet + Submit-CWMTimeSheet + Update-CWMTimeSheet + Get-CWMServiceTemplates + Remove-CWMProjectTicketNote + New-CWMProjectTicketNote + Get-CWMProjectTicketAllNote + Get-CWMProjectTicketNote + Import-Module 'ConnectWiseManageAPI' + + + + + DscResource + + + + RoleCapability + + + + Cmdlet + + + + + + https://github.com/christaylorcodes/ConnectWiseManageAPI/releases + + + + + https://www.powershellgallery.com/api/v2 + PSGallery + NuGet + + + System.Management.Automation.PSCustomObject + System.Object + + + (c) 2020 Chris Taylor. All rights reserved. + PowerShell wrapper for the ConnectWise Manage REST API + False + https://github.com/christaylorcodes/ConnectWiseManageAPI/releases + True + True + 97488 + 293611 + 204396 + 9/4/2024 12:44:17 AM -04:00 + 9/4/2024 12:44:17 AM -04:00 + 3/27/2025 12:10:00 PM -04:00 + ChrisTaylorCodes ConnectWise Manage REST API PSModule PSFunction_Connect-CWM PSCommand_Connect-CWM PSFunction_Disconnect-CWM PSCommand_Disconnect-CWM PSFunction_Get-CWMCommunicationType PSCommand_Get-CWMCommunicationType PSFunction_Get-CWMCompany PSCommand_Get-CWMCompany PSFunction_New-CWMCompany PSCommand_New-CWMCompany PSFunction_Remove-CWMCompany PSCommand_Remove-CWMCompany PSFunction_Update-CWMCompany PSCommand_Update-CWMCompany PSFunction_Get-CWMCompanyTypeAssociation PSCommand_Get-CWMCompanyTypeAssociation PSFunction_New-CWMCompanyTypeAssociation PSCommand_New-CWMCompanyTypeAssociation PSFunction_Remove-CWMCompanyTypeAssociation PSCommand_Remove-CWMCompanyTypeAssociation PSFunction_Update-CWMCompanyTypeAssociation PSCommand_Update-CWMCompanyTypeAssociation PSFunction_Get-CWMCompanyNote PSCommand_Get-CWMCompanyNote PSFunction_New-CWMCompanyNote PSCommand_New-CWMCompanyNote PSFunction_Remove-CWMCompanyNote PSCommand_Remove-CWMCompanyNote PSFunction_Get-CWMCompanyNoteType PSCommand_Get-CWMCompanyNoteType PSFunction_Get-CWMCompanySite PSCommand_Get-CWMCompanySite PSFunction_New-CWMCompanySite PSCommand_New-CWMCompanySite PSFunction_Remove-CWMCompanySite PSCommand_Remove-CWMCompanySite PSFunction_Update-CWMCompanySite PSCommand_Update-CWMCompanySite PSFunction_Get-CWMCompanyState PSCommand_Get-CWMCompanyState PSFunction_Get-CWMCompanyStatus PSCommand_Get-CWMCompanyStatus PSFunction_Remove-CWMCompanyStatus PSCommand_Remove-CWMCompanyStatus PSFunction_Get-CWMCompanyTeam PSCommand_Get-CWMCompanyTeam PSFunction_New-CWMCompanyTeam PSCommand_New-CWMCompanyTeam PSFunction_Remove-CWMCompanyTeam PSCommand_Remove-CWMCompanyTeam PSFunction_Update-CWMCompanyTeam PSCommand_Update-CWMCompanyTeam PSFunction_Get-CWMCompanyType PSCommand_Get-CWMCompanyType PSFunction_Get-CWMCompanyConfiguration PSCommand_Get-CWMCompanyConfiguration PSFunction_Get-CWMCompanyConfigurationType PSCommand_Get-CWMCompanyConfigurationType PSFunction_New-CWMCompanyConfiguration PSCommand_New-CWMCompanyConfiguration PSFunction_New-CWMCompanyConfigurationTypeQuestionValue PSCommand_New-CWMCompanyConfigurationTypeQuestionValue PSFunction_Remove-CWMCompanyConfiguration PSCommand_Remove-CWMCompanyConfiguration PSFunction_Update-CWMCompanyConfiguration PSCommand_Update-CWMCompanyConfiguration PSFunction_Update-CWMCompanyConfigurationTypeQuestionValue PSCommand_Update-CWMCompanyConfigurationTypeQuestionValue PSFunction_New-CWMContactCommunication PSCommand_New-CWMContactCommunication PSFunction_Remove-CWMContactCommunication PSCommand_Remove-CWMContactCommunication PSFunction_Update-CWMContactCommunication PSCommand_Update-CWMContactCommunication PSFunction_Get-CWMCompanyContactNote PSCommand_Get-CWMCompanyContactNote PSFunction_New-CWMCompanyContactNote PSCommand_New-CWMCompanyContactNote PSFunction_Remove-CWMCompanyContactNote PSCommand_Remove-CWMCompanyContactNote PSFunction_Get-CWMCompanyContact PSCommand_Get-CWMCompanyContact PSFunction_Get-CWMContactType PSCommand_Get-CWMContactType PSFunction_New-CWMCompanyContact PSCommand_New-CWMCompanyContact PSFunction_Remove-CWMCompanyContact PSCommand_Remove-CWMCompanyContact PSFunction_Update-CWMCompanyContact PSCommand_Update-CWMCompanyContact PSFunction_Get-CWMCompanyCountry PSCommand_Get-CWMCompanyCountry PSFunction_Get-CWMCompanyTeamRole PSCommand_Get-CWMCompanyTeamRole PSFunction_Get-CWMAgreementAddition PSCommand_Get-CWMAgreementAddition PSFunction_New-CWMAgreementAddition PSCommand_New-CWMAgreementAddition PSFunction_Remove-CWMAgreementAddition PSCommand_Remove-CWMAgreementAddition PSFunction_Update-CWMAgreementAddition PSCommand_Update-CWMAgreementAddition PSFunction_Get-CWMAgreement PSCommand_Get-CWMAgreement PSFunction_New-CWMAgreement PSCommand_New-CWMAgreement PSFunction_Update-CWMAgreement PSCommand_Update-CWMAgreement PSFunction_Get-CWMAgreementSite PSCommand_Get-CWMAgreementSite PSFunction_Remove-CWMAgreementSite PSCommand_Remove-CWMAgreementSite PSFunction_Get-CWMAgreementTypes PSCommand_Get-CWMAgreementTypes PSFunction_New-CWMAgreementTypes PSCommand_New-CWMAgreementTypes PSFunction_Update-CWMAgreementTypes PSCommand_Update-CWMAgreementTypes PSFunction_ConvertFrom-CWMTime PSCommand_ConvertFrom-CWMTime PSFunction_ConvertTo-CWMTime PSCommand_ConvertTo-CWMTime PSFunction_Get-CWMChargeCode PSCommand_Get-CWMChargeCode PSFunction_New-CWMDebugReport PSCommand_New-CWMDebugReport PSFunction_Get-CWMMarketingGroupCompany PSCommand_Get-CWMMarketingGroupCompany PSFunction_New-CWMMarketingGroupCompany PSCommand_New-CWMMarketingGroupCompany PSFunction_Remove-CWMMarketingGroupCompany PSCommand_Remove-CWMMarketingGroupCompany PSFunction_Get-CWMMarketingGroupContact PSCommand_Get-CWMMarketingGroupContact PSFunction_Get-CWMMarketingGroup PSCommand_Get-CWMMarketingGroup PSFunction_Get-CWMProductAdjustment PSCommand_Get-CWMProductAdjustment PSFunction_Get-CWMProductAdjustmentDetail PSCommand_Get-CWMProductAdjustmentDetail PSFunction_New-CWMProductAdjustment PSCommand_New-CWMProductAdjustment PSFunction_New-CWMProductAdjustmentDetail PSCommand_New-CWMProductAdjustmentDetail PSFunction_Update-CWMProductAdjustment PSCommand_Update-CWMProductAdjustment PSFunction_Get-CWMProductCatalog PSCommand_Get-CWMProductCatalog PSFunction_New-CWMProductCatalog PSCommand_New-CWMProductCatalog PSFunction_Update-CWMProductCatalog PSCommand_Update-CWMProductCatalog PSFunction_Get-CWMManufacturer PSCommand_Get-CWMManufacturer PSFunction_Get-CWMProductComponent PSCommand_Get-CWMProductComponent PSFunction_Get-CWMProduct PSCommand_Get-CWMProduct PSFunction_Get-CWMProductType PSCommand_Get-CWMProductType PSFunction_Get-CWMPurchaseOrder PSCommand_Get-CWMPurchaseOrder PSFunction_Get-CWMPurchaseOrderLineItem PSCommand_Get-CWMPurchaseOrderLineItem PSFunction_Update-CWMPurchaseOrder PSCommand_Update-CWMPurchaseOrder PSFunction_Get-CWMProductSubCategory PSCommand_Get-CWMProductSubCategory PSFunction_Get-CWMInventory PSCommand_Get-CWMInventory PSFunction_Get-CWMWarehouse PSCommand_Get-CWMWarehouse PSFunction_Get-CWMWarehouseBin PSCommand_Get-CWMWarehouseBin PSFunction_Get-CWMProjectPhase PSCommand_Get-CWMProjectPhase PSFunction_New-CWMProjectPhase PSCommand_New-CWMProjectPhase PSFunction_Update-CWMProjectPhase PSCommand_Update-CWMProjectPhase PSFunction_Get-CWMProject PSCommand_Get-CWMProject PSFunction_Update-CWMProject PSCommand_Update-CWMProject PSFunction_Get-CWMProjectSecurityRole PSCommand_Get-CWMProjectSecurityRole PSFunction_Get-CWMProjectTeamMember PSCommand_Get-CWMProjectTeamMember PSFunction_New-CWMProjectTeamMember PSCommand_New-CWMProjectTeamMember PSFunction_Get-CWMProjectTicket PSCommand_Get-CWMProjectTicket PSFunction_Update-CWMProjectTicket PSCommand_Update-CWMProjectTicket PSFunction_Get-CWMSalesActivity PSCommand_Get-CWMSalesActivity PSFunction_Get-CWMScheduleHoliday PSCommand_Get-CWMScheduleHoliday PSFunction_Get-CWMScheduleHolidayList PSCommand_Get-CWMScheduleHolidayList PSFunction_Get-CWMScheduleEntry PSCommand_Get-CWMScheduleEntry PSFunction_New-CWMScheduleEntry PSCommand_New-CWMScheduleEntry PSFunction_Remove-CWMScheduleEntry PSCommand_Remove-CWMScheduleEntry PSFunction_Update-CWMScheduleEntry PSCommand_Update-CWMScheduleEntry PSFunction_Get-CWMServiceBoardInfo PSCommand_Get-CWMServiceBoardInfo PSFunction_Get-CWMBoardItem PSCommand_Get-CWMBoardItem PSFunction_New-CWMBoardItem PSCommand_New-CWMBoardItem PSFunction_Get-CWMBoardItemAssociation PSCommand_Get-CWMBoardItemAssociation PSFunction_Update-CWMBoardItemAssociation PSCommand_Update-CWMBoardItemAssociation PSFunction_Get-CWMServiceBoard PSCommand_Get-CWMServiceBoard PSFunction_New-CWMServiceBoard PSCommand_New-CWMServiceBoard PSFunction_Get-CWMBoardStatus PSCommand_Get-CWMBoardStatus PSFunction_Get-CWMBoardStatusNotification PSCommand_Get-CWMBoardStatusNotification PSFunction_Get-CWMBoardSubtype PSCommand_Get-CWMBoardSubtype PSFunction_Get-CWMBoardTeam PSCommand_Get-CWMBoardTeam PSFunction_Get-CWMBoardType PSCommand_Get-CWMBoardType PSFunction_Get-CWMBoardTypeSubTypeItemAssociation PSCommand_Get-CWMBoardTypeSubTypeItemAssociation PSFunction_New-CWMTicketChild PSCommand_New-CWMTicketChild PSFunction_Get-CWMPriority PSCommand_Get-CWMPriority PSFunction_Get-CWMSLA PSCommand_Get-CWMSLA PSFunction_Get-CWMSource PSCommand_Get-CWMSource PSFunction_Get-CWMTicketConfiguration PSCommand_Get-CWMTicketConfiguration PSFunction_New-CWMTicketConfiguration PSCommand_New-CWMTicketConfiguration PSFunction_Remove-CWMTicketConfiguration PSCommand_Remove-CWMTicketConfiguration PSFunction_Get-CWMTicketAllNote PSCommand_Get-CWMTicketAllNote PSFunction_Get-CWMTicketNote PSCommand_Get-CWMTicketNote PSFunction_New-CWMTicketNote PSCommand_New-CWMTicketNote PSFunction_Remove-CWMTicketNote PSCommand_Remove-CWMTicketNote PSFunction_Get-CWMTicket PSCommand_Get-CWMTicket PSFunction_New-CWMTicket PSCommand_New-CWMTicket PSFunction_Remove-CWMTicket PSCommand_Remove-CWMTicket PSFunction_Update-CWMTicket PSCommand_Update-CWMTicket PSFunction_Get-CWMTicketTask PSCommand_Get-CWMTicketTask PSFunction_New-CWMTicketTask PSCommand_New-CWMTicketTask PSFunction_Get-CWMAuditTrail PSCommand_Get-CWMAuditTrail PSFunction_Get-CWMCallbackEntry PSCommand_Get-CWMCallbackEntry PSFunction_New-CWMCallbackEntry PSCommand_New-CWMCallbackEntry PSFunction_Remove-CWMCallbackEntry PSCommand_Remove-CWMCallbackEntry PSFunction_Update-CWMCallbackEntry PSCommand_Update-CWMCallbackEntry PSFunction_Get-CWMDepartment PSCommand_Get-CWMDepartment PSFunction_Get-CWMDepartmentLocation PSCommand_Get-CWMDepartmentLocation PSFunction_Get-CWMDocument PSCommand_Get-CWMDocument PSFunction_New-CWMDocument PSCommand_New-CWMDocument PSFunction_Remove-CWMDocument PSCommand_Remove-CWMDocument PSFunction_Get-CWMMember PSCommand_Get-CWMMember PSFunction_New-CWMMember PSCommand_New-CWMMember PSFunction_New-CWMMemberToken PSCommand_New-CWMMemberToken PSFunction_Update-CWMMember PSCommand_Update-CWMMember PSFunction_Get-CWMReport PSCommand_Get-CWMReport PSFunction_Get-CWMReportColumn PSCommand_Get-CWMReportColumn PSFunction_Get-CWMSSOConfiguration PSCommand_Get-CWMSSOConfiguration PSFunction_Update-CWMSSOConfiguration PSCommand_Update-CWMSSOConfiguration PSFunction_Get-CWMMyMember PSCommand_Get-CWMMyMember PSFunction_Get-CWMMySecurity PSCommand_Get-CWMMySecurity PSFunction_Get-CWMSystemInfo PSCommand_Get-CWMSystemInfo PSFunction_Get-CWMTimeEntry PSCommand_Get-CWMTimeEntry PSFunction_New-CWMTimeEntry PSCommand_New-CWMTimeEntry PSFunction_Remove-CWMTimeEntry PSCommand_Remove-CWMTimeEntry PSFunction_Update-CWMTimeEntry PSCommand_Update-CWMTimeEntry PSFunction_Get-CWMTimeSheet PSCommand_Get-CWMTimeSheet PSFunction_Submit-CWMTimeSheet PSCommand_Submit-CWMTimeSheet PSFunction_Update-CWMTimeSheet PSCommand_Update-CWMTimeSheet PSIncludes_Function + False + 2025-03-27T12:10:00Z + 0.4.15 + Chris Taylor + false + Module + ConnectWiseManageAPI.nuspec|Private\Invoke\Invoke-CWMWebRequest.ps1|Public\Company\CompanyNoteTypes\Get-CWMCompanyNoteType.ps1|Public\Company\Configurations\New-CWMCompanyConfiguration.ps1|Public\Company\Contacts\Update-CWMCompanyContact.ps1|Public\Finance\AgreementTypes\Update-CWMAgreementTypes.ps1|Public\Procurement\CatalogsItem\Get-CWMProductCatalog.ps1|Public\Project\ProjectPhases\New-CWMProjectPhase.ps1|Public\Schedule\ScheduleEntries\Update-CWMScheduleEntry.ps1|Public\Service\Priorities\Get-CWMPriority.ps1|Public\Service\TicketTasks\New-CWMTicketTask.ps1|Public\System\Members\New-CWMMember.ps1|ConnectWiseManageAPI.Format.ps1xml|Public\Authentication\Connect-CWM.ps1|Public\Company\CompanySites\Get-CWMCompanySite.ps1|Public\Company\Configurations\New-CWMCompanyConfigurationTypeQuestionValue.ps1|Public\Company\Country\Get-CWMCompanyCountry.ps1|Public\Helper\ConvertFrom-CWMTime.ps1|Public\Procurement\CatalogsItem\New-CWMProductCatalog.ps1|Public\Project\ProjectPhases\Update-CWMProjectPhase.ps1|Public\Service\BoardInfo\Get-CWMServiceBoardInfo.ps1|Public\Service\SLAs\Get-CWMSLA.ps1|Public\System\Get-CWMMyMember.ps1|Public\System\Members\New-CWMMemberToken.ps1|Public\Authentication\Disconnect-CWM.ps1|Public\Company\CompanySites\New-CWMCompanySite.ps1|Public\Company\Configurations\Remove-CWMCompanyConfiguration.ps1|Public\Company\State\Get-CWMCompanyState.ps1|Public\Helper\ConvertTo-CWMTime.ps1|Public\Procurement\CatalogsItem\Update-CWMProductCatalog.ps1|Public\Project\Projects\Get-CWMProject.ps1|Public\Service\BoardItem\Get-CWMBoardItem.ps1|Public\Service\Sources\Get-CWMSource.ps1|Public\System\Get-CWMMySecurity.ps1|Public\System\Members\Update-CWMMember.ps1|ConnectWiseManageAPI.psd1|Public\Company\CommunicationTypes\Get-CWMCommunicationType.ps1|Public\Company\CompanySites\Remove-CWMCompanySite.ps1|Public\Company\Configurations\Update-CWMCompanyConfiguration.ps1|Public\Company\TeamRoles\Get-CWMCompanyTeamRole.ps1|Public\Helper\Get-CWMChargeCode.ps1|Public\Procurement\Manufacturers\Get-CWMManufacturer.ps1|Public\Project\Projects\Update-CWMProject.ps1|Public\Service\BoardItem\New-CWMBoardItem.ps1|Public\Service\TicketConfigurations\Get-CWMTicketConfiguration.ps1|Public\System\Get-CWMSystemInfo.ps1|Public\System\Reports\Get-CWMReport.ps1|ConnectWiseManageAPI.psm1|Public\Company\Companies\Get-CWMCompany.ps1|Public\Company\CompanySites\Update-CWMCompanySite.ps1|Public\Company\Configurations\Update-CWMCompanyConfigurationTypeQuestionValue.ps1|Public\Finance\AgreementAdditions\Get-CWMAgreementAddition.ps1|Public\Helper\New-CWMDebugReport.ps1|Public\Procurement\ProductComponents\Get-CWMProductComponent.ps1|Public\Project\ProjectSecurityRoles\Get-CWMProjectSecurityRole.ps1|Public\Service\BoardItemAssociations\Get-CWMBoardItemAssociation.ps1|Public\Service\TicketConfigurations\New-CWMTicketConfiguration.ps1|Public\System\AuditTrail\Get-CWMAuditTrail.ps1|Public\System\Reports\Get-CWMReportColumn.ps1|en-US\ConnectWiseManageAPI-help.xml|Public\Company\Companies\New-CWMCompany.ps1|Public\Company\CompanyStates\Get-CWMCompanyState.ps1|Public\Company\ContactCommunications\New-CWMContactCommunication.ps1|Public\Finance\AgreementAdditions\New-CWMAgreementAddition.ps1|Public\Marketing\Companies\Get-CWMMarketingGroupCompany.ps1|Public\Procurement\ProductsItem\Get-CWMProduct.ps1|Public\Project\ProjectsTeamMembers\Get-CWMProjectTeamMember.ps1|Public\Service\BoardItemAssociations\Update-CWMBoardItemAssociation.ps1|Public\Service\TicketConfigurations\Remove-CWMTicketConfiguration.ps1|Public\System\CallbackEntries\Get-CWMCallbackEntry.ps1|Public\System\SSO\Get-CWMSSOConfiguration.ps1|Private\ConvertFrom\ConvertFrom-CWMColumnRow.ps1|Public\Company\Companies\Remove-CWMCompany.ps1|Public\Company\CompanyStatuses\Get-CWMCompanyStatus.ps1|Public\Company\ContactCommunications\Remove-CWMContactCommunication.ps1|Public\Finance\AgreementAdditions\Remove-CWMAgreementAddition.ps1|Public\Marketing\Companies\New-CWMMarketingGroupCompany.ps1|Public\Procurement\ProductTypes\Get-CWMProductType.ps1|Public\Project\ProjectsTeamMembers\New-CWMProjectTeamMember.ps1|Public\Service\Boards\Get-CWMServiceBoard.ps1|Public\Service\TicketNotes\Get-CWMTicketAllNote.ps1|Public\System\CallbackEntries\New-CWMCallbackEntry.ps1|Public\System\SSO\Update-CWMSSOConfiguration.ps1|Private\Helper\Join-Url.ps1|Public\Company\Companies\Update-CWMCompany.ps1|Public\Company\CompanyStatuses\Remove-CWMCompanyStatus.ps1|Public\Company\ContactCommunications\Update-CWMContactCommunication.ps1|Public\Finance\AgreementAdditions\Update-CWMAgreementAddition.ps1|Public\Marketing\Companies\Remove-CWMMarketingGroupCompany.ps1|Public\Procurement\PurchaseOrders\Get-CWMPurchaseOrder.ps1|Public\Project\ProjectTickets\Get-CWMProjectTicket.ps1|Public\Service\Boards\New-CWMServiceBoard.ps1|Public\Service\TicketNotes\Get-CWMTicketNote.ps1|Public\System\CallbackEntries\Remove-CWMCallbackEntry.ps1|Public\Time\TimeEntries\Get-CWMTimeEntry.ps1|Private\Helper\New-CWMUrl.ps1|Public\Company\CompanyCompanyTypeAssociations\Get-CWMCompanyTypeAssociation.ps1|Public\Company\CompanyTeams\Get-CWMCompanyTeam.ps1|Public\Company\ContactNotes\Get-CWMCompanyContactNote.ps1|Public\Finance\Agreements\Get-CWMAgreement.ps1|Public\Marketing\Contacts\Get-CWMMarketingGroupContact.ps1|Public\Procurement\PurchaseOrders\Get-CWMPurchaseOrderLineItem.ps1|Public\Project\ProjectTickets\Update-CWMProjectTicket.ps1|Public\Service\BoardStatuses\Get-CWMBoardStatus.ps1|Public\Service\TicketNotes\New-CWMTicketNote.ps1|Public\System\CallbackEntries\Update-CWMCallbackEntry.ps1|Public\Time\TimeEntries\New-CWMTimeEntry.ps1|Private\Helper\Test-ParameterVersioning.ps1|Public\Company\CompanyCompanyTypeAssociations\New-CWMCompanyTypeAssociation.ps1|Public\Company\CompanyTeams\New-CWMCompanyTeam.ps1|Public\Company\ContactNotes\New-CWMCompanyContactNote.ps1|Public\Finance\Agreements\New-CWMAgreement.ps1|Public\Marketing\Groups\Get-CWMMarketingGroup.ps1|Public\Procurement\PurchaseOrders\Update-CWMPurchaseOrder.ps1|Public\Sales\Activities\Get-CWMSalesActivity.ps1|Public\Service\BoardStatusNotifications\Get-CWMBoardStatusNotification.ps1|Public\Service\TicketNotes\Remove-CWMTicketNote.ps1|Public\System\Department\Get-CWMDepartment.ps1|Public\Time\TimeEntries\Remove-CWMTimeEntry.ps1|Private\Invoke\Invoke-CWMAllResult.ps1|Public\Company\CompanyCompanyTypeAssociations\Remove-CWMCompanyTypeAssociation.ps1|Public\Company\CompanyTeams\Remove-CWMCompanyTeam.ps1|Public\Company\ContactNotes\Remove-CWMCompanyContactNote.ps1|Public\Finance\Agreements\Update-CWMAgreement.ps1|Public\Procurement\Adjustment\Get-CWMProductAdjustment.ps1|Public\Procurement\SubCategories\Get-CWMProductSubCategory.ps1|Public\Schedule\HolidayLists\Get-CWMScheduleHoliday.ps1|Public\Service\BoardSubtypes\Get-CWMBoardSubtype.ps1|Public\Service\Tickets\Get-CWMTicket.ps1|Public\System\Department\Get-CWMDepartmentLocation.ps1|Public\Time\TimeEntries\Update-CWMTimeEntry.ps1|Private\Invoke\Invoke-CWMGetMaster.ps1|Public\Company\CompanyCompanyTypeAssociations\Update-CWMCompanyTypeAssociation.ps1|Public\Company\CompanyTeams\Update-CWMCompanyTeam.ps1|Public\Company\Contacts\Get-CWMCompanyContact.ps1|Public\Finance\AgreementSites\Get-CWMAgreementSite.ps1|Public\Procurement\Adjustment\Get-CWMProductAdjustmentDetail.ps1|Public\Procurement\Warehouse\Get-CWMInventory.ps1|Public\Schedule\HolidayLists\Get-CWMScheduleHolidayList.ps1|Public\Service\BoardTeams\Get-CWMBoardTeam.ps1|Public\Service\Tickets\New-CWMTicket.ps1|Public\System\Documents\Get-CWMDocument.ps1|Public\Time\TimeSheets\Get-CWMTimeSheet.ps1|Private\Invoke\Invoke-CWMNewMaster.ps1|Public\Company\CompanyNotes\Get-CWMCompanyNote.ps1|Public\Company\CompanyTypes\Get-CWMCompanyType.ps1|Public\Company\Contacts\Get-CWMContactType.ps1|Public\Finance\AgreementSites\Remove-CWMAgreementSite.ps1|Public\Procurement\Adjustment\New-CWMProductAdjustment.ps1|Public\Procurement\Warehouse\Get-CWMWarehouse.ps1|Public\Schedule\ScheduleEntries\Get-CWMScheduleEntry.ps1|Public\Service\BoardTypes\Get-CWMBoardType.ps1|Public\Service\Tickets\Remove-CWMTicket.ps1|Public\System\Documents\New-CWMDocument.ps1|Public\Time\TimeSheets\Submit-CWMTimeSheet.ps1|Private\Invoke\Invoke-CWMRemoveMaster.ps1|Public\Company\CompanyNotes\New-CWMCompanyNote.ps1|Public\Company\Configurations\Get-CWMCompanyConfiguration.ps1|Public\Company\Contacts\New-CWMCompanyContact.ps1|Public\Finance\AgreementTypes\Get-CWMAgreementTypes.ps1|Public\Procurement\Adjustment\New-CWMProductAdjustmentDetail.ps1|Public\Procurement\Warehouse\Get-CWMWarehouseBin.ps1|Public\Schedule\ScheduleEntries\New-CWMScheduleEntry.ps1|Public\Service\BoardTypeSubTypeItemAssociation\Get-CWMBoardTypeSubTypeItemAssociation.ps1|Public\Service\Tickets\Update-CWMTicket.ps1|Public\System\Documents\Remove-CWMDocument.ps1|Public\Time\TimeSheets\Update-CWMTimeSheet.ps1|Private\Invoke\Invoke-CWMSearchMaster.ps1|Public\Company\CompanyNotes\Remove-CWMCompanyNote.ps1|Public\Company\Configurations\Get-CWMCompanyConfigurationType.ps1|Public\Company\Contacts\Remove-CWMCompanyContact.ps1|Public\Finance\AgreementTypes\New-CWMAgreementTypes.ps1|Public\Procurement\Adjustment\Update-CWMProductAdjustment.ps1|Public\Project\ProjectPhases\Get-CWMProjectPhase.ps1|Public\Schedule\ScheduleEntries\Remove-CWMScheduleEntry.ps1|Public\Service\CombineTickets\New-CWMTicketChild.ps1|Public\Service\TicketTasks\Get-CWMTicketTask.ps1|Public\System\Members\Get-CWMMember.ps1|Public\Service\Templates\Get-CWMServiceTemplates.ps1|Private\Invoke\Invoke-CWMUpdateMaster.ps1|Public\Project\ProjectTicketNotes\Get-CWMProjectTicketAllNote.ps1|Public/Project/ProjectTicketNotes/Get-CWMProjectTicketNote.ps1|Public\Project\ProjectTicketNotes\New-CWMProjectTicketNote.ps1|Public\Project\ProjectTicketNotes\Remove-CWMProjectTicketNote.ps1 + 3374fb93-c06d-47b0-b4cc-9d49987e376f + 3.0 + ChrisTaylorCodes + + + C:\Users\awilson\OneDrive - R Fox Consulting\PowerShell\Modules\ConnectWiseManageAPI\0.4.15.0 +
+
+ diff --git a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketAllNote.ps1 b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketAllNote.ps1 new file mode 100644 index 0000000..079ac27 --- /dev/null +++ b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketAllNote.ps1 @@ -0,0 +1,22 @@ +function Get-CWMProjectTicketAllNote { + [CmdletBinding()] + param( + [Parameter(Mandatory=$true)] + [Alias('ticketId')] + [int]$parentId, + [int]$id, + [switch]$count, + [string]$condition, + [ValidatePattern('\S* (desc|asc)')] + [string]$orderBy, + [string]$childConditions, + [string]$customFieldConditions, + [int]$page, + [int]$pageSize, + [string[]]$fields, + [switch]$all + ) + + $Endpoint = "/project/tickets/$($parentId)/allnotes" + Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint +} \ No newline at end of file diff --git a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketNote.ps1 b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketNote.ps1 new file mode 100644 index 0000000..14b235b --- /dev/null +++ b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketNote.ps1 @@ -0,0 +1,22 @@ +function Get-CWMProjectTicketNote { + [CmdletBinding()] + param( + [Parameter(Mandatory=$true)] + [Alias('ticketId')] + [int]$parentId, + [int]$id, + [switch]$count, + [string]$condition, + [ValidatePattern('\S* (desc|asc)')] + [string]$orderBy, + [string]$childConditions, + [string]$customFieldConditions, + [int]$page, + [int]$pageSize, + [string[]]$fields, + [switch]$all + ) + + $Endpoint = "/project/tickets/$($parentId)/notes" + Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint +} \ No newline at end of file diff --git a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/New-CWMProjectTicketNote.ps1 b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/New-CWMProjectTicketNote.ps1 new file mode 100644 index 0000000..725922d --- /dev/null +++ b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/New-CWMProjectTicketNote.ps1 @@ -0,0 +1,26 @@ +function New-CWMProjectTicketNote { + [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Used by sub-function')] + [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(Mandatory = $true)] + [Alias('ticketId')] + [int]$parentId, + [int]$id, + [string]$text, + [boolean]$detailDescriptionFlag, + [boolean]$internalAnalysisFlag, + [boolean]$resolutionFlag, + [hashtable]$member, + [hashtable]$contact, + [boolean]$customerUpdatedFlag, + [boolean]$processNotifications, + [string]$dateCreated, + [string]$createdBy, + [boolean]$internalFlag, + [boolean]$externalFlag, + [hashtable]$_info + ) + + $Endpoint = "/project/tickets/$($parentId)/notes" + Invoke-CWMNewMaster -Arguments $PsBoundParameters -Endpoint $Endpoint +} diff --git a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Remove-CWMProjectTicketNote.ps1 b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Remove-CWMProjectTicketNote.ps1 new file mode 100644 index 0000000..3ec40ee --- /dev/null +++ b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Remove-CWMProjectTicketNote.ps1 @@ -0,0 +1,14 @@ +function Remove-CWMProjectTicketNote { + [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Used by sub-function')] + [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Medium')] + param( + [Parameter(Mandatory = $true)] + [Alias('noteId')] + [int]$id, + [Parameter(Mandatory = $true)] + [Alias('ticketId')] + [int]$parentId + ) + $Endpoint = "/project/tickets/$($parentId)/notes/$($id)" + Invoke-CWMRemoveMaster -Endpoint $Endpoint +} diff --git a/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplates.ps1 b/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplates.ps1 new file mode 100644 index 0000000..e3d7e1c --- /dev/null +++ b/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplates.ps1 @@ -0,0 +1,18 @@ +function Get-CWMServiceTemplates { + [CmdletBinding()] + param( + [string]$clientId , + [int]$pageId, + [string]$condition, + [ValidatePattern('\S* (desc|asc)')] + [string]$orderBy, + [string]$childConditions, + [string]$customFieldConditions, + [int]$page, + [int]$pageSize, + [string[]]$fields + ) + + $Endpoint = '/service/templates' + Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint +} \ No newline at end of file diff --git a/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplatesInfo.ps1 b/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplatesInfo.ps1 new file mode 100644 index 0000000..e3d7e1c --- /dev/null +++ b/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplatesInfo.ps1 @@ -0,0 +1,18 @@ +function Get-CWMServiceTemplates { + [CmdletBinding()] + param( + [string]$clientId , + [int]$pageId, + [string]$condition, + [ValidatePattern('\S* (desc|asc)')] + [string]$orderBy, + [string]$childConditions, + [string]$customFieldConditions, + [int]$page, + [int]$pageSize, + [string[]]$fields + ) + + $Endpoint = '/service/templates' + Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint +} \ No newline at end of file From e3314d67fef37de773262730cc0b10e74068b964 Mon Sep 17 00:00:00 2001 From: Adam Wilson Date: Tue, 17 Jun 2025 17:10:21 +0000 Subject: [PATCH 2/3] mostly documentation updates. --- .../ConnectWiseManageAPI.psd1 | Bin 17914 -> 18070 bytes ...e.ps1 => Get-CWMProjectTicketAllNotes.ps1} | 2 +- .../New-CWMProjectTicketNote.ps1 | 26 --- .../Remove-CWMProjectTicketNote.ps1 | 14 -- .../Opportunities/Get-CWMOpportunities.ps1} | 9 +- .../Get-CWMOpportunityForecasts.ps1} | 12 +- .../Opportunities/Get-CWMOpportunityNote.ps1 | 20 ++ .../Templates/Get-CWMServiceTemplates.ps1 | 1 - ConnectWiseManageAPI_Functions.md | 19 +- Docs/Get-CWMOpportunities.md | 173 ++++++++++++++++ Docs/Get-CWMOpportunityForecasts.md | 186 +++++++++++++++++ Docs/Get-CWMOpportunityNote.md | 192 ++++++++++++++++++ Docs/Get-CWMProjectTicketAllNotes.md | 190 +++++++++++++++++ Docs/Get-CWMServiceTemplates.md | 165 +++++++++++++++ 14 files changed, 953 insertions(+), 56 deletions(-) rename ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/{Get-CWMProjectTicketAllNote.ps1 => Get-CWMProjectTicketAllNotes.ps1} (92%) delete mode 100644 ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/New-CWMProjectTicketNote.ps1 delete mode 100644 ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Remove-CWMProjectTicketNote.ps1 rename ConnectWiseManageAPI/Public/{Service/Templates/Get-CWMServiceTemplatesInfo.ps1 => Sales/Opportunities/Get-CWMOpportunities.ps1} (74%) rename ConnectWiseManageAPI/Public/{Project/ProjectTicketNotes/Get-CWMProjectTicketNote.ps1 => Sales/Opportunities/Get-CWMOpportunityForecasts.ps1} (64%) create mode 100644 ConnectWiseManageAPI/Public/Sales/Opportunities/Get-CWMOpportunityNote.ps1 create mode 100644 Docs/Get-CWMOpportunities.md create mode 100644 Docs/Get-CWMOpportunityForecasts.md create mode 100644 Docs/Get-CWMOpportunityNote.md create mode 100644 Docs/Get-CWMProjectTicketAllNotes.md create mode 100644 Docs/Get-CWMServiceTemplates.md diff --git a/ConnectWiseManageAPI/ConnectWiseManageAPI.psd1 b/ConnectWiseManageAPI/ConnectWiseManageAPI.psd1 index 7575e6a87f20e508579f957b533f1782ec7efb24..c6e146aa9bc052453ccdc5e97bfd3ad0f4579afc 100644 GIT binary patch delta 123 zcmey>%{Z->aYGLiqxs~I%;KAuF!2~owlfhD_h%>o!hD7zh7yKShCGH$Af3sOI(egn kxF|Nc%E^Lyvg%l67~H_-q%tHkBr+5O%_-iz*2Gs302KruN&o-= delta 29 lcmbQ%%lNCCaYGLiqrv2l%;KAuF!2~o7O@iBoMdVu2mqz&3Dp1q diff --git a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketAllNote.ps1 b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketAllNotes.ps1 similarity index 92% rename from ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketAllNote.ps1 rename to ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketAllNotes.ps1 index 079ac27..00502cb 100644 --- a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketAllNote.ps1 +++ b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketAllNotes.ps1 @@ -1,4 +1,4 @@ -function Get-CWMProjectTicketAllNote { +function Get-CWMProjectTicketAllNotes { [CmdletBinding()] param( [Parameter(Mandatory=$true)] diff --git a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/New-CWMProjectTicketNote.ps1 b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/New-CWMProjectTicketNote.ps1 deleted file mode 100644 index 725922d..0000000 --- a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/New-CWMProjectTicketNote.ps1 +++ /dev/null @@ -1,26 +0,0 @@ -function New-CWMProjectTicketNote { - [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Used by sub-function')] - [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Medium')] - param( - [Parameter(Mandatory = $true)] - [Alias('ticketId')] - [int]$parentId, - [int]$id, - [string]$text, - [boolean]$detailDescriptionFlag, - [boolean]$internalAnalysisFlag, - [boolean]$resolutionFlag, - [hashtable]$member, - [hashtable]$contact, - [boolean]$customerUpdatedFlag, - [boolean]$processNotifications, - [string]$dateCreated, - [string]$createdBy, - [boolean]$internalFlag, - [boolean]$externalFlag, - [hashtable]$_info - ) - - $Endpoint = "/project/tickets/$($parentId)/notes" - Invoke-CWMNewMaster -Arguments $PsBoundParameters -Endpoint $Endpoint -} diff --git a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Remove-CWMProjectTicketNote.ps1 b/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Remove-CWMProjectTicketNote.ps1 deleted file mode 100644 index 3ec40ee..0000000 --- a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Remove-CWMProjectTicketNote.ps1 +++ /dev/null @@ -1,14 +0,0 @@ -function Remove-CWMProjectTicketNote { - [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSShouldProcess', '', Justification = 'Used by sub-function')] - [CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Medium')] - param( - [Parameter(Mandatory = $true)] - [Alias('noteId')] - [int]$id, - [Parameter(Mandatory = $true)] - [Alias('ticketId')] - [int]$parentId - ) - $Endpoint = "/project/tickets/$($parentId)/notes/$($id)" - Invoke-CWMRemoveMaster -Endpoint $Endpoint -} diff --git a/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplatesInfo.ps1 b/ConnectWiseManageAPI/Public/Sales/Opportunities/Get-CWMOpportunities.ps1 similarity index 74% rename from ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplatesInfo.ps1 rename to ConnectWiseManageAPI/Public/Sales/Opportunities/Get-CWMOpportunities.ps1 index e3d7e1c..c731009 100644 --- a/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplatesInfo.ps1 +++ b/ConnectWiseManageAPI/Public/Sales/Opportunities/Get-CWMOpportunities.ps1 @@ -1,8 +1,7 @@ -function Get-CWMServiceTemplates { +function Get-CWMOpportunities { [CmdletBinding()] param( - [string]$clientId , - [int]$pageId, + [switch]$count, [string]$condition, [ValidatePattern('\S* (desc|asc)')] [string]$orderBy, @@ -13,6 +12,6 @@ function Get-CWMServiceTemplates { [string[]]$fields ) - $Endpoint = '/service/templates' + $Endpoint = '/sales/opportunities' Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint -} \ No newline at end of file +} diff --git a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketNote.ps1 b/ConnectWiseManageAPI/Public/Sales/Opportunities/Get-CWMOpportunityForecasts.ps1 similarity index 64% rename from ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketNote.ps1 rename to ConnectWiseManageAPI/Public/Sales/Opportunities/Get-CWMOpportunityForecasts.ps1 index 14b235b..5e4490a 100644 --- a/ConnectWiseManageAPI/Public/Project/ProjectTicketNotes/Get-CWMProjectTicketNote.ps1 +++ b/ConnectWiseManageAPI/Public/Sales/Opportunities/Get-CWMOpportunityForecasts.ps1 @@ -1,22 +1,20 @@ -function Get-CWMProjectTicketNote { +function Get-CWMOpportunityForecasts { [CmdletBinding()] param( [Parameter(Mandatory=$true)] - [Alias('ticketId')] + [Alias('OpportunityId')] [int]$parentId, - [int]$id, [switch]$count, - [string]$condition, + [string]$conditions, [ValidatePattern('\S* (desc|asc)')] [string]$orderBy, [string]$childConditions, [string]$customFieldConditions, [int]$page, [int]$pageSize, - [string[]]$fields, - [switch]$all + [string[]]$fields ) - $Endpoint = "/project/tickets/$($parentId)/notes" + $Endpoint = "/sales/opportunities/$($parentId)/forecast" Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } \ No newline at end of file diff --git a/ConnectWiseManageAPI/Public/Sales/Opportunities/Get-CWMOpportunityNote.ps1 b/ConnectWiseManageAPI/Public/Sales/Opportunities/Get-CWMOpportunityNote.ps1 new file mode 100644 index 0000000..a61cb5c --- /dev/null +++ b/ConnectWiseManageAPI/Public/Sales/Opportunities/Get-CWMOpportunityNote.ps1 @@ -0,0 +1,20 @@ +function Get-CWMOpportunityNote { + [CmdletBinding()] + param( + [Parameter(Mandatory=$true)] + [Alias('OpportunityId')] + [int]$parentId, + [switch]$count, + [string]$conditions, + [ValidatePattern('\S* (desc|asc)')] + [string]$orderBy, + [string]$childConditions, + [string]$customFieldConditions, + [int]$page, + [int]$pageSize, + [string[]]$fields + ) + + $Endpoint = "/sales/opportunities/$($parentId)/notes" + Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint +} \ No newline at end of file diff --git a/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplates.ps1 b/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplates.ps1 index e3d7e1c..889bc1f 100644 --- a/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplates.ps1 +++ b/ConnectWiseManageAPI/Public/Service/Templates/Get-CWMServiceTemplates.ps1 @@ -1,7 +1,6 @@ function Get-CWMServiceTemplates { [CmdletBinding()] param( - [string]$clientId , [int]$pageId, [string]$condition, [ValidatePattern('\S* (desc|asc)')] diff --git a/ConnectWiseManageAPI_Functions.md b/ConnectWiseManageAPI_Functions.md index b443439..c70659f 100644 --- a/ConnectWiseManageAPI_Functions.md +++ b/ConnectWiseManageAPI_Functions.md @@ -2,13 +2,13 @@ Module Name: ConnectWiseManageAPI Module Guid: 3374fb93-c06d-47b0-b4cc-9d49987e376f Download Help Link: https://github.com/christaylorcodes/ConnectWiseManageAPI -Help Version: 0.0.0.1 +Help Version: 0.0.0.2 Locale: en-US --- # ConnectWiseManageAPI Module ## Description -These commands should mirror what is available via the REST API . +These commands should mirror what is available via the REST API. ## ConnectWiseManageAPI Cmdlets ### [Connect-CWM](Docs/Connect-CWM.md) @@ -149,6 +149,15 @@ This function will return information about the user used for the API connection ### [Get-CWMMySecurity](Docs/Get-CWMMySecurity.md) This function will return information about the users permissions. +### [Get-CWMOpportunities](Docs/Get-CWMOpportunities.md) +This function will return information about Opportunities. + +### [Get-CWMOpportunityForecasts](Docs/Get-CWMOpportunityForecasts.md) +This function will return information about the Forecast lines on an Opportunit. + +### [Get-CWMOpportunityNote](Docs/Get-CWMOpportunityNote.md) +This function will return the notes on an Opportunity. + ### [Get-CWMPriority](Docs/Get-CWMPriority.md) This function will list service priorities on conditions. @@ -179,6 +188,9 @@ This will return a list of projects. ### [Get-CWMProjectPhase](Docs/Get-CWMProjectPhase.md) This function will list all phases for a project. +### [Get-CWMProjectTicketAllNote](Docs/Get-CWMProjectTicketAllNote.md) +This function will list all notes for a project ticket. + ### [Get-CWMProjectSecurityRole](Docs/Get-CWMProjectSecurityRole.md) This function will list project security roles. @@ -218,6 +230,9 @@ This function will list of service boards based on conditions. ### [Get-CWMServiceBoardInfo](Docs/Get-CWMServiceBoardInfo.md) This will return information about service boards. +### [Get-CWMServiceTemplates](Docs/Get-CWMServiceTemplates.md) +This will return information about service/ticket templates. + ### [Get-CWMSLA](Docs/Get-CWMSLA.md) This function will list service SLAs on conditions. diff --git a/Docs/Get-CWMOpportunities.md b/Docs/Get-CWMOpportunities.md new file mode 100644 index 0000000..46fba33 --- /dev/null +++ b/Docs/Get-CWMOpportunities.md @@ -0,0 +1,173 @@ +--- +Module Name: ConnectWiseManageAPI +online version: +--- + +# Get-CWMOpportunities + +## SYNOPSIS +This function will return information about Opportunities. + +## SYNTAX + +``` +Get-CWMOpportunities [-id ] [-count] [[-condition] ] [[-orderBy] ] + [[-childConditions] ] [[-customFieldConditions] ] [[-page] ] [[-pageSize] ] + [-fields ] [] +``` + +## DESCRIPTION +This will call the /sales/opportunities REST API endpoint. + +## EXAMPLES + +### EXAMPLE 1 +```powershell +$CWMOpportunitiesParameters = @{ + condition = "id>=0 and id<=200" + pageSize = 25 + page = 1 + orderBy = "id desc" + } +$CWMOpportunitiesParameters.condition += " and company/name='ACME Corporation'" + +$CWMOpportunities = Get-CWMOpportunities @CWMOpportunitiesParameters +``` + + +## PARAMETERS + +### -childConditions +Allows searching arrays on endpoints that list childConditions under parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -customFieldConditions +Allows searching custom fields when customFieldConditions is listed in the parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -orderBy +Choose which field to sort the results by, 'field/sub desc' or 'field/sub asc' + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -page +Used in pagination to cycle through results + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -pageSize +Number of results returned per page (Defaults to 25) + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -condition +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"` + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -fields +Allows you to return a partial response with just the fields listed. + +```yaml +Type: String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -count +Will return the number of objects. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +## NOTES +Author: Adam Wilson Date: 2025-06-17 + +## RELATED LINKS + +[https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/Opportunities](https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/Opportunities) diff --git a/Docs/Get-CWMOpportunityForecasts.md b/Docs/Get-CWMOpportunityForecasts.md new file mode 100644 index 0000000..1abe8ee --- /dev/null +++ b/Docs/Get-CWMOpportunityForecasts.md @@ -0,0 +1,186 @@ +--- +Module Name: ConnectWiseManageAPI +online version: +--- + +# Get-CWMOpportunities + +## SYNOPSIS +This function will return the forecast lines on an Opportunity. + +## SYNTAX + +``` +Get-CWMOpportunityForecasts -parentId [-count] [[-condition] ] [[-orderBy] ] + [[-childConditions] ] [[-customFieldConditions] ] [[-page] ] [[-pageSize] ] + [-fields ] [] +``` + +## DESCRIPTION + +## EXAMPLES + +### EXAMPLE 1 +```powershell +$CWMOpportunityForecastsParameters = @{ + ParentId = 3265 + pageSize = 25 + page = 1 + orderBy = "id desc" + } + +$CWMOpportunityForecasts = Get-CWMOpportunityForecasts @CWMOpportunityForecastsParameters +``` + + +## PARAMETERS + +### -id +The ID of the opportunity + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: OpportunityId + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -childConditions +Allows searching arrays on endpoints that list childConditions under parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -customFieldConditions +Allows searching custom fields when customFieldConditions is listed in the parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -orderBy +Choose which field to sort the results by, 'field/sub desc' or 'field/sub asc' + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -page +Used in pagination to cycle through results + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -pageSize +Number of results returned per page (Defaults to 25) + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -condition +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"` + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -fields +Allows you to return a partial response with just the fields listed. + +```yaml +Type: String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -count +Will return the number of objects. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +## NOTES +Author: Adam Wilson Date: 2025-06-17 + +## RELATED LINKS + +[https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/OpportunityForecasts](https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/OpportunityForecasts) diff --git a/Docs/Get-CWMOpportunityNote.md b/Docs/Get-CWMOpportunityNote.md new file mode 100644 index 0000000..5f704a4 --- /dev/null +++ b/Docs/Get-CWMOpportunityNote.md @@ -0,0 +1,192 @@ +--- +Module Name: ConnectWiseManageAPI +online version: +--- + +# Get-CWMOpportunities + +## SYNOPSIS +This function will return the forecast lines on an Opportunity. + +## SYNTAX + +``` +Get-CWMOpportunityNote -parentId [-count] [[-condition] ] [[-orderBy] ] + [[-childConditions] ] [[-customFieldConditions] ] [[-page] ] [[-pageSize] ] + [-fields ] [] +``` + +## DESCRIPTION + +## EXAMPLES + +### EXAMPLE 1 +```powershell +$CWMOpportunityNoteParameters = @{ + ParentId = 3265 + pageSize = 25 + page = 1 + orderBy = "id desc" + } + +$CWMOpportunityNote = Get-CWMOpportunityNote @CWMOpportunityNoteParameters +``` + +### EXAMPLE 2 +```powershell + +$CWMOpportunityNote = Get-CWMOpportunityNote -ParentId 3265 +``` + + +## PARAMETERS + +### -id +The ID of the opportunity + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: OpportunityId + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -childConditions +Allows searching arrays on endpoints that list childConditions under parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -customFieldConditions +Allows searching custom fields when customFieldConditions is listed in the parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -orderBy +Choose which field to sort the results by, 'field/sub desc' or 'field/sub asc' + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -page +Used in pagination to cycle through results + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -pageSize +Number of results returned per page (Defaults to 25) + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -condition +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"` + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -fields +Allows you to return a partial response with just the fields listed. + +```yaml +Type: String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -count +Will return the number of objects. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +## NOTES +Author: Adam Wilson Date: 2025-06-17 + +## RELATED LINKS + +[https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/OpportunityNotes](https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/OpportunityNotes) diff --git a/Docs/Get-CWMProjectTicketAllNotes.md b/Docs/Get-CWMProjectTicketAllNotes.md new file mode 100644 index 0000000..b861a92 --- /dev/null +++ b/Docs/Get-CWMProjectTicketAllNotes.md @@ -0,0 +1,190 @@ +--- +Module Name: ConnectWiseManageAPI +online version: +--- + +# Get-CWMOpportunities + +## SYNOPSIS +This function will return the forecast lines on an Opportunity. + +## SYNTAX + +``` +Get-CWMProjectTicketAllNotes -parentId [-count] [[-condition] ] [[-orderBy] ] + [[-childConditions] ] [[-customFieldConditions] ] [[-page] ] [[-pageSize] ] + [-fields ] [] +``` + +## DESCRIPTION + +## EXAMPLES + +### EXAMPLE 1 +```powershell +$CWMProjectTicketAllNotesParameters = @{ + parentId = $ticket.id + page = 4 +} + +$CWMProjectTicketAllNotes = (Get-CWMProjectTicketAllNotes @CWMProjectTicketAllNotesParameters) +``` + +### EXAMPLE 2 +```powershell + +$CWMProjectTicketAllNotes = (Get-CWMProjectTicketAllNotes -ParentId 3265) +``` + + +## PARAMETERS + +### -parentId +The ID of the project ticket. + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: ticketId + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -childConditions +Allows searching arrays on endpoints that list childConditions under parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -customFieldConditions +Allows searching custom fields when customFieldConditions is listed in the parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -orderBy +Choose which field to sort the results by, 'field/sub desc' or 'field/sub asc' + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -page +Used in pagination to cycle through results + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -pageSize +Number of results returned per page (Defaults to 25) + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -condition +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"` + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -fields +Allows you to return a partial response with just the fields listed. + +```yaml +Type: String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -count +Will return the number of objects. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +## NOTES +Author: Adam Wilson Date: 2025-06-17 + +## RELATED LINKS + +[https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/OpportunityNotes](https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/OpportunityNotes) diff --git a/Docs/Get-CWMServiceTemplates.md b/Docs/Get-CWMServiceTemplates.md new file mode 100644 index 0000000..8884f15 --- /dev/null +++ b/Docs/Get-CWMServiceTemplates.md @@ -0,0 +1,165 @@ +--- +Module Name: ConnectWiseManageAPI +online version: +--- + +# Get-CWMOpportunities + +## SYNOPSIS +This function will return ervice templates. + +## SYNTAX + +``` +Get-CWMServiceTemplates [-count] [[-condition] ] [[-orderBy] ] + [[-childConditions] ] [[-customFieldConditions] ] [[-page] ] [[-pageSize] ] + [-fields ] [] +``` + +## DESCRIPTION + +## EXAMPLES + +### EXAMPLE 1 +```powershell + +$GetCWMServiceTemplates = Get-CWMServiceTemplates -pageSize 1000 +``` + + +## PARAMETERS + +### -childConditions +Allows searching arrays on endpoints that list childConditions under parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -customFieldConditions +Allows searching custom fields when customFieldConditions is listed in the parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -orderBy +Choose which field to sort the results by, 'field/sub desc' or 'field/sub asc' + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -page +Used in pagination to cycle through results + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -pageSize +Number of results returned per page (Defaults to 25) + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -condition +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"` + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -fields +Allows you to return a partial response with just the fields listed. + +```yaml +Type: String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -count +Will return the number of objects. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +## NOTES +Author: Adam Wilson Date: 2025-06-17 + +## RELATED LINKS + +[https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/ServiceTemplates](https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/ServiceTemplates) From dec25a71d72899746f1071b0887191260cbe0301 Mon Sep 17 00:00:00 2001 From: Adam Wilson Date: Thu, 10 Jul 2025 16:53:07 +0000 Subject: [PATCH 3/3] Get-CWMInvoices --- ConnectWiseManageAPI.psd1 | Bin 15492 -> 15528 bytes .../ConnectWiseManageAPI.psd1 | Bin 18070 -> 18002 bytes ConnectWiseManageAPI/PSGetModuleInfo.xml | 8 +- .../Finance/Invoices/Get-CWMInvoices.ps1 | 23 +++ ConnectWiseManageAPI_Functions.md | 3 + Docs/Get-CWMInvoices.md | 170 ++++++++++++++++++ Docs/Get-CWMOpportunityForecasts.md | 2 +- Docs/Get-CWMOpportunityNote.md | 2 +- Docs/Get-CWMProjectTicketAllNotes.md | 2 +- Docs/Get-CWMServiceTemplates.md | 2 +- 10 files changed, 203 insertions(+), 9 deletions(-) create mode 100644 ConnectWiseManageAPI/Public/Finance/Invoices/Get-CWMInvoices.ps1 create mode 100644 Docs/Get-CWMInvoices.md diff --git a/ConnectWiseManageAPI.psd1 b/ConnectWiseManageAPI.psd1 index 79acc7aa9a79f32456ef8d6d994acb5e51a239ae..638c80d7fced50b9902a7f48285b9a03db3a61e9 100644 GIT binary patch delta 55 zcmZpvTv559gNfCYL65;=@<(Rz%}bajX-xhmEhOy8kjGHQkk63Gkj#+EP|TptpgFmb LMSQcLwwWLR>F^Jw delta 35 rcmZ2c*;2WogNfCEL65;;@<(Rz%}bajX-sx86`Cx-#Im_S+d>ck*_jIa diff --git a/ConnectWiseManageAPI/ConnectWiseManageAPI.psd1 b/ConnectWiseManageAPI/ConnectWiseManageAPI.psd1 index c6e146aa9bc052453ccdc5e97bfd3ad0f4579afc..d404b510578fd43989874ccd66088988a9576b76 100644 GIT binary patch delta 71 zcmV-N0J#5_jRDe(0kDh$12F(Flko!=v!nuOF_R!J4wFzcD3h`n7L)Ka6qD98c9XUk d5)VlLZUA-wZvbfkV*q6UbCVG|8M9(FG!bX(7JUE! delta 60 zcmV-C0K@;%i~*L70kDh$0XLI@1Q)ZW0%$Rl?iLP{AS4Ep>@!%Co-GuUkS7q6Kqv~5 SG#ry!G>VgQ4i>W>H8c^Hd=z^C diff --git a/ConnectWiseManageAPI/PSGetModuleInfo.xml b/ConnectWiseManageAPI/PSGetModuleInfo.xml index d9ea397..642d279 100644 --- a/ConnectWiseManageAPI/PSGetModuleInfo.xml +++ b/ConnectWiseManageAPI/PSGetModuleInfo.xml @@ -7,7 +7,7 @@ ConnectWiseManageAPI - 0.4.15.0 + 0.4.15.10 Module PowerShell wrapper for the ConnectWise Manage REST API Chris Taylor @@ -229,7 +229,6 @@ Submit-CWMTimeSheet Update-CWMTimeSheet Remove-CWMProjectTicketNote - New-CWMProjectTicketNote Get-CWMProjectTicketAllNote Get-CWMProjectTicketNote Import-Module 'ConnectWiseManageAPI' @@ -405,9 +404,8 @@ Update-CWMTimeSheet Get-CWMServiceTemplates Remove-CWMProjectTicketNote - New-CWMProjectTicketNote - Get-CWMProjectTicketAllNote - Get-CWMProjectTicketNote + Get-CWMProjectTicketAllNotes + Get-CWMProjectTicketNotes Import-Module 'ConnectWiseManageAPI' diff --git a/ConnectWiseManageAPI/Public/Finance/Invoices/Get-CWMInvoices.ps1 b/ConnectWiseManageAPI/Public/Finance/Invoices/Get-CWMInvoices.ps1 new file mode 100644 index 0000000..881eeeb --- /dev/null +++ b/ConnectWiseManageAPI/Public/Finance/Invoices/Get-CWMInvoices.ps1 @@ -0,0 +1,23 @@ +function Get-CWMInvoices { + [CmdletBinding()] + param( + [int]$id, + [string]$condition, + [ValidatePattern('\S* (desc|asc)')] + [string]$orderBy, + [string]$childConditions, + [string]$customFieldConditions, + [int]$page, + [int]$pageSize, + [string[]]$fields + ) + + if ($id) { + $Endpoint = '/finance/invoices/$($Id)' + Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint + } + else { + $Endpoint = '/finance/invoices' + Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint + } +} diff --git a/ConnectWiseManageAPI_Functions.md b/ConnectWiseManageAPI_Functions.md index c70659f..f67d53e 100644 --- a/ConnectWiseManageAPI_Functions.md +++ b/ConnectWiseManageAPI_Functions.md @@ -128,6 +128,9 @@ This function will list documents associated with a record. ### [Get-CWMInventory](Docs/Get-CWMInventory.md) This function will list Inventory and Stock on Hand, including serial numbers from a specific Warehouse Bin +### [Get-CWMInvoices](Docs/Get-CWMInvoices.md) +This function will list Invoices + ### [Get-CWMManufacturer](Docs/Get-CWMManufacturer.md) This function will allow you to search for Manage manufacturers. diff --git a/Docs/Get-CWMInvoices.md b/Docs/Get-CWMInvoices.md new file mode 100644 index 0000000..f5c6a31 --- /dev/null +++ b/Docs/Get-CWMInvoices.md @@ -0,0 +1,170 @@ +--- +external help file: ConnectWiseManageAPI-help.xml +Module Name: ConnectWiseManageAPI +online version: +schema: 2.0.0 +--- + +# Get-CWMInvoices + +## SYNOPSIS +This function will list Invoice + +## SYNTAX + +``` +Get-CWMInvoices [[-id] ] [[-condition] ] [[-orderBy] ] + [[-childConditions] ] [[-customFieldConditions] ] [[-page] ] [[-pageSize] ] + [[-fields] ] [-all] [] +``` + +## DESCRIPTION +{{ Fill in the Description }} + +## EXAMPLES + +### EXAMPLE 1 +```powershell +Get-CWMInvoices -Id 555 +``` + +Will return invoice 555 + +## PARAMETERS + +### -childConditions +Allows searching arrays on endpoints that list childConditions under parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 4 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -condition +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"` + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 2 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -customFieldConditions +Allows searching custom fields when customFieldConditions is listed in the parameters + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 5 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -fields +Allows you to return a partial response with just the fields listed. + +```yaml +Type: String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: 8 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -id +{{ Fill id Description }} + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -orderBy +Choose which field to sort the results by, 'field/sub desc' or 'field/sub asc' + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: 3 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -page +Used in pagination to cycle through results + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 6 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -pageSize +Number of results returned per page (Defaults to 25) + +```yaml +Type: Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: 7 +Default value: 0 +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### None +## OUTPUTS + +### System.Object +## NOTES +Author: Adam Wilson Date: 2025-06-30 + +## RELATED LINKS + +[https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/Invoices/getFinanceInvoices](https://developer.connectwise.com/Products/ConnectWise_PSA/REST#/Invoices/getFinanceInvoices) diff --git a/Docs/Get-CWMOpportunityForecasts.md b/Docs/Get-CWMOpportunityForecasts.md index 1abe8ee..0811097 100644 --- a/Docs/Get-CWMOpportunityForecasts.md +++ b/Docs/Get-CWMOpportunityForecasts.md @@ -3,7 +3,7 @@ Module Name: ConnectWiseManageAPI online version: --- -# Get-CWMOpportunities +# Get-CWMOpportunityForecasts ## SYNOPSIS This function will return the forecast lines on an Opportunity. diff --git a/Docs/Get-CWMOpportunityNote.md b/Docs/Get-CWMOpportunityNote.md index 5f704a4..25e7295 100644 --- a/Docs/Get-CWMOpportunityNote.md +++ b/Docs/Get-CWMOpportunityNote.md @@ -3,7 +3,7 @@ Module Name: ConnectWiseManageAPI online version: --- -# Get-CWMOpportunities +# Get-CWMOpportunityNote ## SYNOPSIS This function will return the forecast lines on an Opportunity. diff --git a/Docs/Get-CWMProjectTicketAllNotes.md b/Docs/Get-CWMProjectTicketAllNotes.md index b861a92..dfcac98 100644 --- a/Docs/Get-CWMProjectTicketAllNotes.md +++ b/Docs/Get-CWMProjectTicketAllNotes.md @@ -3,7 +3,7 @@ Module Name: ConnectWiseManageAPI online version: --- -# Get-CWMOpportunities +# Get-CWMProjectTicketAllNotes ## SYNOPSIS This function will return the forecast lines on an Opportunity. diff --git a/Docs/Get-CWMServiceTemplates.md b/Docs/Get-CWMServiceTemplates.md index 8884f15..9608f4e 100644 --- a/Docs/Get-CWMServiceTemplates.md +++ b/Docs/Get-CWMServiceTemplates.md @@ -3,7 +3,7 @@ Module Name: ConnectWiseManageAPI online version: --- -# Get-CWMOpportunities +# Get-CWMServiceTemplates ## SYNOPSIS This function will return ervice templates.