Find your content:

Search form

You are here

RecentlyViewed objects not returning Email... Sf bug?

 
Share

When I query the recentlyViewed object, the email address isn't being returned even though Email is a field that is supported per the documentation

To reproduce:

Run this query:

System.debug([SELECT Id, Email FROM RecentlyViewed]);

Response I receive (note that only the user object has an associated email):

12:20:12:182 USER_DEBUG [1]|DEBUG|(RecentlyViewed:{Type=Lead, Id=00Qi0000007lWrmEAE}, RecentlyViewed:{Type=Lead, Id=00Qi000000BcsbtEAB}, RecentlyViewed:{Type=Lead, Id=00Qi000000BcRtHEAV}, RecentlyViewed:{Type=Lead, Id=00Qi000000BcRtHEAV}, RecentlyViewed:{Type=Topic, Id=0TOi0000000PTvGGAW}, RecentlyViewed:{Email=--!REDACTED!--, Type=User, Id=005i0000002seV7AAI}, RecentlyViewed:{Type=Topic, Id=0TOi0000000PW8oGAG}, RecentlyViewed:{Type=Topic, Id=0TOi0000000PW7bGAG}, RecentlyViewed:{Type=Report, Id=00Oi0000003vQAoEAM}, RecentlyViewed:{Type=Report, Id=00Oi0000003vQApEAM}, ...)

Is anyone else having this issue or am I doing something wrong? What's the best way to report it to Salesforce if it is a bug?


Attribution to: Akrikos
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/32082

My Block Status

My Block Content