HandleUpsertError
Helper method that constructs the error response for upsert of a
partyIncome or partyExpense record.
Signature
call(String action, Map<String, Object> args
Return Value
Returns a list of errors encountered while upserting the record in the database.
Examples
Input and output JSON example of the action are as follows.
-
Input format:
1[ 2 { 3 "Name": "PI-0000000003", 4 "UsageType": "CashFlow", 5 "IncomeFrequency": "Monthly", 6 "IncomeType": "Salary", 7 "Id": "2m3SG000007dkxxYAA", 8 "IncomeAmount": 999.99, 9 "PartyId": "001SG000004TCxxYAG", 10 "IncomeStatus": "Active", 11 "StartDate": "2024-01-29T08:00:00.000Z" 12 } 13]
-
Output format:
1[ { "UpsertError“: "Invalid Id“ } ]