ManageApplicationDataService Class
Reads, creates, and updates a constituent’s integrated benefits application data as a single, nested record tree. This class implements the Callable interface.
ManageApplicationDataService implements the Callable interface, allowing it to be invoked generically—for example, from Flow or OmniStudio—without a compile-time reference.
The class manages the complete application-data record tree for Integrated Eligibility, providing the same functionality exposed by the POST /connect/integrated-application/application-data resource.
This class ignores the action argument because it supports a single operation. The operation—read, create, or update—is inferred from the inputs provided:
- Read — Provide
hydrationRecordIdwithoutapplicationData. Returns the existing application-data tree for the specified record, including its actual record IDs. - Create — Provide
applicationDatawithouthydrationRecordId. Persists a new record tree and returns the created data, including the newly assigned record IDs. - Update — Provide both
hydrationRecordIdandapplicationData. Performs a smart update in which only changed records are written, children without IDs are created, and nodes marked with_delete: trueare removed.
- Input
Provide inputs through
args.get('input')using these keys:contextDefinitionApiNamecontextMappingNamecontextMappingIdhydrationRecordIdapplicationData
- Output
The
call()method always returns null. Read the operation result fromoutput.get('applicationData'). If the operation fails,applicationDatais omitted and the error is provided throughoutput.get('error').
-
ManageApplicationDataService Methods
These methods are for ManageApplicationDataService.
These methods are for ManageApplicationDataService.
The following are methods for ManageApplicationDataService.
-
manageApplicationData(input, output, options)
Reads, creates, or updates a constituent’s integrated benefits application-data record tree, depending on the provided inputs.
Reads, creates, or updates a constituent’s integrated benefits application-data record tree, depending on the provided inputs.
public static void manageApplicationData(Map<String,Object> input, Map<String,Object> output, Map<String,Object> options)
- input
Type: Map<String,Object>
The request inputs. Supported keys:
contextDefinitionApiName,contextMappingName,contextMappingId,hydrationRecordId, andapplicationData.- output
Type: Map<String,Object>
The map the method populates with the result. On success, the result is in the
applicationDatakey. On failure,applicationDatais omitted and the error is in the error key.- options
Type: Map<String,Object>
Type: void