@provided_by¶
Info
New in Atfinity 17.
Description¶
@provided_by returns who set the value of a field. Write it at the end of a field path, including one that starts with OLD., which then gives you who set the value in the previous state of the instance.
What comes back depends on where the value came from:
| Source of the value | Result |
|---|---|
| A user in the Case Manager | That user, the same object USERS.<email> returns |
| An end user wizard | The text Wizard |
| The API | The text API |
| A rule | An internal identifier of that rule, which is not stable enough to compare against |
If nothing is on record, the result is unknown.
A provenance operator attaches to a field path and to nothing else. Expressions such as (p.first_name + ' ' + p.last_name)@provided_by, CASE.state@provided_by and COUNT(p.accounts)@provided_by are rejected when the rule is validated.
In an ADX template and in a document box the same operator returns the plain text that is on record, so a user is printed as their email address rather than resolved.
Example¶
This is true only when that user answered the PEP question themselves, and false when the answer came from a wizard, from the API or from a rule.