Use case:
- SelfService Portal (yes, an old org ca. 2007 but still using this feature)
- Triggers and workflows associated with
CaseComment
- Case comment added from Self Service Portal as in screen shot below
Question: If the triggers/workflows aren't doing what one expects, how does one debug this using the Debug Log?
Facts as I see them:
- The running user is not the automated case user when case comments are inserted
- The running user is of type
SelfServiceUser
(key prefix 035) - Trace Flags can't be set for
SelfServiceUser
, onlyUser
Short of injecting a beacon into the org that uses an email alert or apex outbound email to broadcast fields that might be of use in diagnostics, is there some other alternative that exploits the OOTB debug log?
SelfServiceUser
s aren'tUser
s so you can't dosystem.runAs()
and 3) I'm not running tests, I'm diagnosing a live system from a user event on the Self Service portalCaseComment
so if I do what you suggest, I might be able to get the WF debug trace as well.