Add-BillingEntry
- 1 Minute to read
- Print
- DarkLight
- PDF
Add-BillingEntry
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
Updates an existing billing entry.
Add-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
Create a new billing entry
# Create a billing entry object
$billingEntry = @{
BillingTypeId = 98
Narrative = "Scripted Billing Entry."
Quantity = 0.50
UnitPrice = 100.00
Date = "2023-10-24T15:00:00-05:00"
}
# Pass the billing entry object to the Add-BillingEntry command to create the entry. This example bypasses custom field validation by including the switch parameter
$createdBillingEntry = Add-BillingEntry -Entry $billingEntry -BypassCustomFieldValidation
# Use Write-Output to log the execution results
Write-Output "Billing entry $($createdBillingEntry.BillingEntryId) created"
Results of executing the script:
Billing entry 89033 created