Accounting Invocable Action Reference

DiscardDocuments

Discard accounting documents by ID using the supplied discard reason. Only documents with status "In Progress" can be discarded; documents in any other status cannot be discarded. Supported document types are cash entry (c2g__codaCashEntry__c), journal (c2g__codaJournal__c), sales invoice (c2g__codaInvoice__c), sales credit note (c2g__codaCreditNote__c), payable invoice (c2g__codaPurchaseInvoice__c) and payable credit note (c2g__codaPurchaseCreditNote__c).

PropertyValue
LabelDiscard Documents
CategoryAccounting
SinceSummer 2026
Read-onlyNo
Supports AgentsYes
Supports FlowsNo
Async ActionNo
Keywordsdiscard, remove, delete, invoice, journal, document

Request Parameters

FieldTypeLabelDescriptionRequired
documentIdIDDocument to DiscardID of the accounting document to discard. Supported document types are cash entry (c2g__codaCashEntry__c), journal (c2g__codaJournal__c), sales invoice (c2g__codaInvoice__c), sales credit note (c2g__codaCreditNote__c), payable invoice (c2g__codaPurchaseInvoice__c) and payable credit note (c2g__codaPurchaseCreditNote__c).Yes
discardReasonStringDiscard ReasonReason for discarding the document, as provided by the user. Recorded against the discarded document.No

Response Parameters

FieldTypeLabelDescriptionRequired
errorMessageStringError MessagePopulated if the document could not be discarded; contains the error detail. Empty on success.No
hasErrorsBooleanHas Errors'True' if the document could not be discarded; 'False' if it was discarded successfully.No
© Copyright 2009–2026 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.