Set-BillingEntry
  • 1 Minute to read
  • Dark
    Light
  • PDF

Set-BillingEntry

  • Dark
    Light
  • PDF

Article summary

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