| Contents: | Main | Chapter | See Also: | Getting Started Manual | Advanced User Manual | |||
| Reference Type | Category | ICR # |
|---|---|---|
| Supported | Auditing | 4397 |
The LAST^DIAUTL API uses the audit trail to retrieve the last user who touched a particular field value, and the date/time when this editing occurred.
$$LAST^DIAUTL(file,entry,field)
| file | (Required) File number of a file that is being audited. | |
| entry | (Required) Entry number in the audited file. | |
| field | (Required) Specifies which fields in the audited file are to be examined for audit history. Can be one of the following:
| |
Returns a string, delimited by a caret (^):
Find who last changed demographics of entry number 666 in File #2.
>W $$LAST^DIAUTL(2,666,"0:1")
3000708.103432^78
User number 78 was the user who most recently changed any of the audited fields numbered between 0 and 1 in this Entry. This user did so on 8 July, 2000 at 10:34 AM.
Reviewed/Updated: March 10, 2007