I'm currently working on a project that involves accessing the Audit Trail database via workflow to analyze activity for a specific user account utilized by an SDK application and run a process on certain documents based on the results.
To provide some background, the basic goal of this part of the project is to find a way to easily distinguish between "reading an eDoc" and "exporting pages to PDF" using the SDK.
I've done some preliminary testing, and so far it seems like both events are logged as "view document" with no way to easily tell the difference.
Question 1: Is there any data in the Audit Trail database that provides a distinction between these events when they are triggered by an SDK application? If so, how can I access it?
Assuming the answer to question 1 is no, there is no way, then my next option is to create a custom event that will provide the necessary information.
I've done some experimentation, but so far I've only gotten as far as getting Audit Trail to report a "custom event" with minimal details.
I see that there are columns for custom data, but so far I haven't been able to connect the dots between those and methods/class members.
Question 2: Are there any examples/documentation describing the correct way to create, report, and utilize custom auditing events/data?