-
Wondering if logging from Apex executed with an Experience Cloud guest user should work? Any specific permissions need to be added to the Sites Guest user Profile? Seeing a Salesforce System Error on line 2656 of Logger.apxc |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hey @taits! Yeah, my goal is that logging should work for Experience Cloud (including the guest user), but it sounds like there might be a bug for the guest user scenario. Any chance you could share a stack trace string for the error that happens on that line? My guess is that for the guest user, Salesforce probably doesn't provide a request ID, so I'm guessing |
Beta Was this translation helpful? Give feedback.
Hey @taits! Yeah, my goal is that logging should work for Experience Cloud (including the guest user), but it sounds like there might be a bug for the guest user scenario. Any chance you could share a stack trace string for the error that happens on that line? My guess is that for the guest user, Salesforce probably doesn't provide a request ID, so I'm guessing
System.Request.getCurrent()
is null --> it fails on the chained call togetRequestId()
. If that's the case, then I think it should be a (hopefully) easy fix to make.