Skip to contents

A request's owner can set a column to accept a value that breaks its rules and flag it, rather than block the whole submission. This returns every such cell across every submission: where it is, what the sender typed, and which rule it broke. The same cells appear in get_data() cast to the column's type where the text allows it, and as NA where it does not.

Usage

get_flags(request, key = NULL)

Arguments

request

A request id (12), or the request's URL on the site ("https://datareceipt.io/requests/12"), or one row of list_requests().

key

Your API key. Defaults to the DATARECEIPT_API_KEY environment variable; see datareceipt_api_key().

Value

A tibble with one row per flagged cell: submission_id, row (the row's position within its submission), submitted_at, sender_name, sender_email, column, value (the text as sent), and message (the rule it broke). Zero rows when nothing is flagged.

Examples

if (FALSE) { # \dontrun{
get_flags(12)
} # }