Newer Version Available
PerformIncomeValidation
Performs validations on Party Income records. Ensure that the
start date is not earlier than the end date.
Signature
call(String action, Map<String, Object> args
Return Value
Returns a list of picklist labels for Party Income type.
Examples
Input and output JSON example of the actions are as follows.
-
Input format:
1[ 2 { 3 "IncomeFrequency": "Weekly", 4 "IncomeFrequencyLabelObject": { 5 "value": "Weekly", 6 "label": "Weekly" 7 }, 8 "MemberOptionsList": [ 9 { 10 "value": "001OG00000xx6gAYAQ", 11 "label": "Okee PA" 12 }, 13 { 14 "value": "id2", 15 "label": "Name2" 16 } 17 ], 18 "IsHousehold": true, 19 "IncomeAmount": 100, 20 "IncomeStatusOptions": [ 21 { 22 "value": "Active", 23 "label": "Active" 24 }, 25 { 26 "value": "Inactive", 27 "label": "Inactive" 28 } 29 ], 30 "PartyId": "001OG00000xx6gAYAQ", 31 "IncomeStatus": "Active", 32 "Party": { 33 "Name": "Okee PA", 34 "Id": "001OG00000xx6gAYAQ" 35 }, 36 "IncomeTypeOptions": [ 37 { 38 "value": "Salary", 39 "label": "Salary" 40 }, 41 { 42 "value": "Commission", 43 "label": "Commission" 44 }, 45 { 46 "value": "Fees", 47 "label": "Fees" 48 }, 49 { 50 "value": "Rent", 51 "label": "Rent" 52 } 53 ], 54 "StartDate": "2024-02-02T00:00:00.000Z", 55 "Name": "PI-0000000009", 56 "FrequencyOptions": [ 57 { 58 "value": "Weekly", 59 "label": "Weekly" 60 }, 61 { 62 "value": "Monthly", 63 "label": "Monthly" 64 }, 65 { 66 "value": "Yearly", 67 "label": "Yearly" 68 } 69 ], 70 "UsageType": "CashFlow", 71 "IncomeId": "2m3OG000000009xxAQ", 72 "IsPersonAccount": false, 73 "IncomeTypeLabelObject": { 74 "value": "Salary", 75 "label": "Salary" 76 } 77 } 78] 79Output format:
1[ 2 { 3 "dateErrorMessage": null, 4 "IncomeFrequency": "Weekly", 5 "IncomeFrequencyLabelObject": { 6 "value": "Weekly", 7 "label": "Weekly" 8 }, 9 "MemberOptionsList": [ 10 { 11 "value": "001OG000003f6gAYAQ", 12 "label": "Okee PA" 13 }, 14 { 15 "value": "id2", 16 "label": "Name2" 17 } 18 ], 19 "requiredFieldErrorMessage": "Required fields:Type", 20 "IsHousehold": true, 21 "IncomeAmount": 100, 22 "PartyId": "001OG000003f6gAYAQ", 23 "IncomeStatusOptions": [ 24 { 25 "value": "Active", 26 "label": "Active" 27 }, 28 { 29 "value": "Inactive", 30 "label": "Inactive" 31 } 32 ], 33 "Party": { 34 "Name": "Okee PA", 35 "Id": "001OG000003f6gAYAQ" 36 }, 37 "IncomeStatus": "Active", 38 "hasUpsertError": false, 39 "IncomeTypeOptions": [ 40 { 41 "value": "Salary", 42 "label": "Salary" 43 }, 44 { 45 "value": "Commission", 46 "label": "Commission" 47 }, 48 { 49 "value": "Fees", 50 "label": "Fees" 51 }, 52 { 53 "value": "Rent", 54 "label": "Rent" 55 } 56 ], 57 "StartDate": "2024-02-02T00:00:00.000Z", 58 "Name": "PI-0000000009", 59 "FrequencyOptions": [ 60 { 61 "value": "Weekly", 62 "label": "Weekly" 63 }, 64 { 65 "value": "Monthly", 66 "label": "Monthly" 67 }, 68 { 69 "value": "Yearly", 70 "label": "Yearly" 71 } 72 ], 73 "UsageType": "CashFlow", 74 "IncomeId": "2m3OG000000009IYAQ", 75 "IsPersonAccount": false, 76 "IncomeTypeLabelObject": { 77 "value": "Salary", 78 "label": "Salary" 79 } 80 } 81] 82