Filter Sales Rep to Only Show Where Contact Type is Sales Rep

šŸ’µ Filter sales representatives based on contact type.

1. Overview

This Interaction is designed to filter the sales representatives to only display those contacts whose contact type is sales.

2. Example

The example below filters the results based on the sales representative ID defined in the value field.

async function handler(C) {
    let actions = [];

    actions.push(
        C.setFilters("1662670-sales-rep", [
            {
                subject: "17277",
                type: "array",
                operator: "any_of",
                ignoreCase: true,
                value: ["1710924"], //Type = Sales Rep Id
            },
        ])
    );
    return C.mergeAll(actions);
}

šŸ“Œ Need Help?

If you require assistance or encounter any issues, please don't hesitate to contact us for further support.