GetCase

typed block

Searches all existing cases with the provided customer ID. Add request fields to filter by case fields. Specify the case fields to be returned in the response to persist in the context.

Factories

GetCase

GetCase() -> GetCaseHandle

Construct a fresh GetCase block with an auto-generated id.

Use this when authoring from scratch, the runtime picks a UUID automatically.

GetCase

GetCase(id: String) -> GetCaseHandle

Construct a GetCase block with an operator-supplied id.

ParameterTypeRequiredDescription
idStringyesWire identifier, typically a Connect UUID restored by decompile so round-trips stay byte-stable.

Methods

get_last_updated_case

get_last_updated_case(value?: String) -> GetCaseHandle

Set the GetLastUpdatedCase parameter. "true" or "false", You can specify to get only the last updated case for any search criteria.

ParameterTypeRequiredDescription
valueStringno"true" or "false", You can specify to get only the last updated case for any search criteria.

customer_id

customer_id(value?: String) -> GetCaseHandle

Set the CustomerId parameter. "Customer's Id", Search all cases for this customer Id.

ParameterTypeRequiredDescription
valueStringno"Customer's Id", Search all cases for this customer Id.

case_request_fields

case_request_fields(value?: String) -> GetCaseHandle

Set the CaseRequestFields parameter. An optional map of cases request fields. Keys should be fields from Cases domain. Values can be static or dynamic.

ParameterTypeRequiredDescription
valueStringnoAn optional map of cases request fields. Keys should be fields from Cases domain. Values can be static or dynamic.

case_response_fields

case_response_fields(value?: String) -> GetCaseHandle

Set the CaseResponseFields parameter. An optional list of field names that should be persisted in the case namespace.

ParameterTypeRequiredDescription
valueStringnoAn optional list of field names that should be persisted in the case namespace.

next

next(target: Handle) -> GetCaseHandle

Wire the success-path transition. Substitutes the target's auto-generated UUID into the wire Transitions.NextAction slot.

ParameterTypeRequiredDescription
targetHandleyesThe block to route to once this block completes successfully.

on_no_matching

on_no_matching(target: Handle) -> GetCaseHandle

Wire an error transition for NoMatchingError: An error was encountered while trying to find the case. This may be due to a system error or how Get case is configured.

ParameterTypeRequiredDescription
targetHandleyesBlock to route to on NoMatchingError. An error was encountered while trying to find the case. This may be due to a system error or how Get case is configured.

on_contact_not_linked

on_contact_not_linked(target: Handle) -> GetCaseHandle

Wire an error transition for ContactNotLinked: If you specify to link the contact to case, then this error branch will appear. It might be that the contact was not linked after the case is retrieved (partial success/partial failure). If this happens, then the flow will follow this branch.

ParameterTypeRequiredDescription
targetHandleyesBlock to route to on ContactNotLinked. If you specify to link the contact to case, then this error branch will appear. It might be that the contact was not linked after the case is retrieved (partial success/partial failure). If this happens, then the flow will follow this branch.

on_multiple_found

on_multiple_found(target: Handle) -> GetCaseHandle

Wire an error transition for MultipleFound: Multiple cases are found with the search criteria.

ParameterTypeRequiredDescription
targetHandleyesBlock to route to on MultipleFound. Multiple cases are found with the search criteria.

on_none_found

on_none_found(target: Handle) -> GetCaseHandle

Wire an error transition for NoneFound: No cases are found with the search criteria.

ParameterTypeRequiredDescription
targetHandleyesBlock to route to on NoneFound. No cases are found with the search criteria.

set_id

set_id(id: String) -> GetCaseHandle

Override the auto-generated identifier with a specific wire id.

ParameterTypeRequiredDescription
idStringyesWire identifier override. Decompile threads this through to round-trip Connect-side UUIDs.

meta_position

meta_position(x: i64, y: i64) -> GetCaseHandle

Set the block's canvas position. Mostly auto-emitted by decompile; authored scripts call Flow.auto_layout() instead and let the layout pass fill positions in.

ParameterTypeRequiredDescription
xi64yesCanvas X coordinate.
yi64yesCanvas Y coordinate.

set_meta

set_meta(key: String, value: Dynamic) -> GetCaseHandle

Single-key escape hatch, set one ActionMetadata key by name when the typed meta_* setters don't cover it.

ParameterTypeRequiredDescription
keyStringyesWire key name (under Metadata.ActionMetadata[<id>]).
valueDynamicyesAny JSON-serializable Rhai value.

overwrite_meta

overwrite_meta(value: Map) -> GetCaseHandle

Full-replace escape hatch, overwrite the entire ActionMetadata blob.

ParameterTypeRequiredDescription
valueMapyesReplacement map for the entire ActionMetadata sub-object.

set_meta_param

set_meta_param(param: String, flag: String, value: Dynamic) -> GetCaseHandle

Set a single per-parameter ActionMetadata flag.

ParameterTypeRequiredDescription
paramStringyesParameter name (e.g. "Text").
flagStringyesFlag name ("useDynamic", "MFLAG_*", etc.).
valueDynamicyesFlag value.

overwrite_meta_param

overwrite_meta_param(param: String, value: Map) -> GetCaseHandle

Replace the entire flag map for one parameter.

ParameterTypeRequiredDescription
paramStringyesParameter name.
valueMapyesReplacement flag map for the parameter.

overwrite_parameters

overwrite_parameters(value: Map) -> GetCaseHandle

Wire-shape escape hatch, overwrite the entire Parameters blob.

ParameterTypeRequiredDescription
valueMapyesReplacement parameter map for the block.

raw_transitions

raw_transitions(value: Map) -> GetCaseHandle

Wire-shape escape hatch for non-canonical transition objects.

ParameterTypeRequiredDescription
valueMapyesReplacement transitions map (raw JSON shape).