@MV_10441462
Just example 😄
try
{
WTPart eventPart = UtilWTPart.getPartLatestIteration("0000000105210.ASM"); // this is my own method to search WTPart by number
WTPrincipalReference userref = SessionHelper.manager.getPrincipalReference();
WTPrincipal user = (WTPrincipal) userref.getObject();
AuditRecord record = new AuditRecord();
record.setEventKey(ContentServiceEvent.POST_DOWNLOAD);
record.setEventLabel("Custom Download");
record.setTargetReference(wt.fc.ObjectReference.newObjectReference(eventPart));
record.setUserOrgName(user.getOrganization().getName());
record.setOrgContainerName(eventPart.getContainerName());
record.setTargetType(eventPart.getType());
record.setEventTime(new Timestamp(System.currentTimeMillis()));
record.setDomainRef(user.getDomainRef());
record.setDomainPath(user.getDomainRef().getName());
PersistenceHelper.manager.save(record);
} catch (WTPropertyVetoException e)
{
throw new RuntimeException(e);
}
The event is in the report

Be sure to set all attributes that you can identify who/when/fromwhere the event was recorded.
PetrH