ftos.metadata.getForm

Retrieves the metadata definition of an entity form.

Syntax

Copy
ftos.metadata.getForm(entityName: string, formName: string): WorkflowUserJourneyMetadata
 
Parameter Type Description
entityName string Name of the form's parent entity.
formName string Name of the entity's form whose form metadata is to be retrieved.

Return Value

Returns an WorkflowUserJourneyMetadata object.

Interfaces

WorkflowUserJourneyMetadata

Metadata definition of a workflow form, including the form structure and section details.

Copy
interface WorkflowUserJourneyMetadata {
    form: WorkflowUserJourneyMetadataForm;
    sections: any[];
}
 
Property Type Description
form WorkflowUserJourneyMetadataForm Metadata describing the form and its fields.
sections any[] An array representing the form's sections.

WorkflowUserJourneyMetadataForm

Describes the structure and field composition of a form.

Copy
interface WorkflowUserJourneyMetadataForm {
    fields: WorkflowUserJourneyMetadataField[];
    name: string;
}
 
Property Type Description
fields WorkflowUserJourneyMetadataField[] An array of metadata objects, each describing an individual field of the form.
name string The name of the form.

WorkflowUserJourneyMetadataField

Metadata for a single form field.

Copy
interface WorkflowUserJourneyMetadataField {
    name: string;
    displayName: string;
    type:'Bool' | 'Color' | 'Date' | 'Date Time' | 'File' |
    'Html' | 'Icon Picker' | 'Js' | 'json' | 'Lookup' | 'Map' |
    'Money' | 'Numeric' | 'Option Set' | 'Order Index' | 'Pk' |
    'Regarding Lookup' | 'Text' | 'Text Area' | 'Whole Number';
    defaultValue: string | WorkflowUserJourneyMetadataLookupValue;
    requiredLevel: "None" | "Recommended" | "Required";
    lookupValues: WorkflowUserJourneyMetadataLookupValue[];
    isReadOnly?: boolean;
}
 
Property Type Description
name string The system name of the field.
displayName string The user-friendly display name of the field as shown on screen.
type string The data type of the field.
defaultValue string | WorkflowUserJourneyMetadataLookupValue Default value assigned to the field (a primitive value or a lookup reference).
requiredLevel "None" | "Recommended" | "Required" Whether the field is optional, suggested, or mandatory.
lookupValues WorkflowUserJourneyMetadataLookupValue[] A list of available lookup values (e.g., for lookup or option set fields).
isReadOnly (optional) boolean Indicates whether the field is read-only.

WorkflowUserJourneyMetadataLookupValue

Metadata for a selectable value in a lookup or option set field.

Copy
interface WorkflowUserJourneyMetadataLookupValue {
    id: string;
    displayName: string;
}
 
Property Type Description
id string The unique identifier of the lookup item.
displayName string The display name associated with the lookup item.

Examples