AggregationFields and query filter how can in use together

Hi!

I need help!!!

I want to use  a!aggregationFields  and filter together how can i get it

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Hi,

    a!queryRecordType(
    recordType: cons!YOUR_RECORD_TYPE,
    fields: a!aggregationFields(
    groupings: a!grouping(
    field: "yourRecordTypeFields.fieldToGroup",
    alias: "aliasForTheField"
    )
    ),
    filters: a!queryFilter(
    field: "yourRecordTypeFields.fieldToFilter",
    operator: "=",
    value: "ValueToFilterBy"
    ),
    pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 500)
    )

Reply
  • 0
    Certified Associate Developer

    Hi,

    a!queryRecordType(
    recordType: cons!YOUR_RECORD_TYPE,
    fields: a!aggregationFields(
    groupings: a!grouping(
    field: "yourRecordTypeFields.fieldToGroup",
    alias: "aliasForTheField"
    )
    ),
    filters: a!queryFilter(
    field: "yourRecordTypeFields.fieldToFilter",
    operator: "=",
    value: "ValueToFilterBy"
    ),
    pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 500)
    )

Children
No Data