Interface ItemListsV2NodeParameters

Source
interface ItemListsV2NodeParameters {
    aggregate?:
        | "aggregateIndividualFields"
        | "aggregateAllItemData";
    code?: string;
    compare?: | "allFields"
    | "allFieldsExcept"
    | "selectedFields";
    destinationFieldName?: string;
    fieldsToAggregate?: {
        fieldToAggregate: {
            fieldToAggregate?: string;
            outputFieldName?: string;
            renameField?: boolean;
        }[];
    };
    fieldsToCompare?: { fields: { fieldName?: string }[] };
    fieldsToExclude?: { fields: { fieldName?: string }[] };
    fieldsToInclude?: { fields: { fieldName?: string }[] };
    fieldsToSplitBy?: string;
    fieldsToSummarize?: {
        values: {
            aggregation?:
                | "append"
                | "max"
                | "average"
                | "concatenate"
                | "count"
                | "countUnique"
                | "min"
                | "sum";
            customSeparator?: string;
            field?: string;
            includeEmpty?: boolean;
            separateBy?: ""
            | "other"
            | ","
            | ", "
            | "\n"
            | " ";
        }[];
    };
    fieldToSplitOut?: string;
    include?: | "allFields"
    | "specifiedFields"
    | "allFieldsExcept"
    | "noOtherFields"
    | "allOtherFields"
    | "selectedOtherFields";
    keep?: "firstItems"
    | "lastItems";
    maxItems?: number;
    operation?:
        | "aggregateItems"
        | "limit"
        | "removeDuplicates"
        | "sort"
        | "splitOutItems"
        | "summarize";
    options?: | {
        disableDotNotation?: boolean;
        removeOtherFields?: boolean;
    }
    | { disableDotNotation?: boolean }
    | {
        destinationFieldName?: string;
        disableDotNotation?: boolean;
        keepMissing?: boolean;
        mergeLists?: boolean;
    }
    | {
        disableDotNotation?: boolean;
        outputFormat?: "separateItems"
        | "singleItem";
        skipEmptySplitFields?: boolean;
    };
    sortFieldsUi?: {
        sortField: {
            fieldName: string;
            order?: "ascending"
            | "descending";
        }[];
    };
    type?: "simple"
    | "random"
    | "code";
}

Properties§

§readonly aggregate?: "aggregateIndividualFields" | "aggregateAllItemData"

Default: "aggregateIndividualFields"

§readonly code?: string

Javascript code to determine the order of any two items Default: "// The two items to compare are in the variables a and b\n// Access the fields in a.json and b.json\n// Return -1 if a should go before b\n// Return 1 if b should go before a\n// Return 0 if there's no difference\n\nfieldName = 'myField';\n\nif (a.json[fieldName] < b.json[fieldName]) {\n\t\treturn -1;\n}\nif (a.json[fieldName] > b.json[fieldName]) {\n\t\treturn 1;\n}\nreturn 0;" Type options: {"alwaysOpenEditWindow":true,"editor":"jsEditor","rows":10}

§readonly compare?: "allFields" | "allFieldsExcept" | "selectedFields"

The fields of the input items to compare to see if they are the same Default: "allFields"

§readonly destinationFieldName?: string

The name of the output field to put the data in Default: "data"

§readonly fieldsToAggregate?: { ... }

Default: {"fieldToAggregate":[{"fieldToAggregate":"","renameField":false}]} Type options: {"multipleValues":true}

§readonly fieldsToCompare?: { ... }

Default: {} Type options: {"multipleValues":true}

§readonly fieldsToExclude?: { ... }

Default: {} Type options: {"multipleValues":true}

§readonly fieldsToInclude?: { ... }

Default: {} Type options: {"multipleValues":true}

§readonly fieldsToSplitBy?: string

The name of the input fields that you want to split the summary by

§readonly fieldsToSummarize?: { ... }

Default: {"values":[{"aggregation":"count","field":""}]} Type options: {"multipleValues":true}

§readonly fieldToSplitOut?: string

The name of the input fields to break out into separate items

§readonly include?:
    | "allFields"
    | "specifiedFields"
    | "allFieldsExcept"
    | "noOtherFields"
    | "allOtherFields"
    | "selectedOtherFields"

Whether to copy any other fields into the new items Default: "noOtherFields"

§readonly keep?: "firstItems" | "lastItems"

When removing items, whether to keep the ones at the start or the ending Default: "firstItems"

§readonly maxItems?: number

If there are more items than this number, some are removed Default: 1 Type options: {"minValue":1}

§readonly operation?:
    | "aggregateItems"
    | "limit"
    | "removeDuplicates"
    | "sort"
    | "splitOutItems"
    | "summarize"

Default: "splitOutItems"

§readonly options?:
    | {
        disableDotNotation?: boolean;
        removeOtherFields?: boolean;
    }
    | { disableDotNotation?: boolean }
    | {
        destinationFieldName?: string;
        disableDotNotation?: boolean;
        keepMissing?: boolean;
        mergeLists?: boolean;
    }
    | {
        disableDotNotation?: boolean;
        outputFormat?: "separateItems"
        | "singleItem";
        skipEmptySplitFields?: boolean;
    }

Default: {}

§readonly sortFieldsUi?: { ... }

The fields of the input items to compare to see if they are the same Default: {} Type options: {"multipleValues":true}

§readonly type?: "simple" | "random" | "code"

The fields of the input items to compare to see if they are the same Default: "simple"