Set-BillingEntry
- 1 Minute to read
- Print
- DarkLight
- PDF
Set-BillingEntry
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
Creates a new billing entry.
Set-BillingEntry
-Entry
-BypassCustomFieldValidation
Returns a billing entry object.
Parameters
Parameter | Type | Required? | Notes |
---|---|---|---|
Entry | Billing Entry Object | Yes | |
BypassCustomFieldValdiation | Switch | No, Defaults to false | Ignores required field requirement for custom fields when the entry is saved. |
Examples
Updates an existing billing entry
# Retrieve an existing billing entry using the Get-BillingEntry cmdlet
$billingEntry = Get-BillingEntry -Id 89017
# Change some properties
$billingEntry.Quantity = 2500
$billingEntry.Notes = "Scripted Updated"
# Update the billing entry using the Set-BillinEntry cmdlet
$updatedBillingEntry = Set-BillingEntry $billingEntry -BypassCustomFieldValidation
# Output a message to the execution log
Write-Output "Updated billing entry $($updatedBillingEntry.BillingEntryId)"
Results of executing the script:
Updated billing entry 89017