with_mention_fields() allows you to fetch additional data fields on mentions, or to count additional fields when counting mentions. This is part of the query() language.

with_mention_fields(.account, ..., .envir)

Arguments

.account

An account or query() object.

...

The fields to order by.

.envir

An environment to perform substitutions in.

Value

A query() object

See also

Other verbs for the query language: group_mentions_by(), compare_mentions(), filter_mentions(), with_mention_order(), with_account().

query() is a way to manually create queries.

Examples

account("TEST01AA") %>% filter_mentions("published inthelast week") %>% with_mention_fields(mentionCount, totalOTS)
#> BrandsEye Query #> accounts: TEST01AA #> brands: TEST01AA:1[Your Brand Here], TEST01AA:2[Sibling Brand] #> timezones: Africa/Johannesburg #> filter: published inthelast week #> fields: mentionCount, totalOTS