Back to all

How can I request tasks for a company and any contact of the company

(edited)

I have tried the following which errors requiring the Number to also be passed:

{
    Task: {
        criteria: {
            searchQuery: {
                AbEntryKey: {
                    "$EQ": {
                        "ID": "xxx"
                    }
                }
            },
            top: 3
        },
        scope: {
            fields: {
                key: 1,
                displayValue: 1,
                AbEntry: 1,
                AbEntryKey: {
                    Value: 1,
                    ID: 1,
                    Number: 1
                }
            }
        }
    },
    configuration: {
        drivers: {
            "IAbEntrySearcher": "Maximizer.Model.Access.Sql.TaskSearcher"
        }
    }
}