SOQL - Locate Private Report

PHOTO EMBED

Tue Dec 17 2024 00:58:05 GMT+0000 (Coordinated Universal Time)

Saved by @dannygelf #flow #salesforce #email

SELECT Id, Name, Owner.Name, OwnerId, CreatedBy.Name 
FROM Report 
USING SCOPE allPrivate 
WHERE Name = 'missing report' and FolderName = 'Private Reports'
content_copyCOPY

Use case: a user has left the company. They used to provide a report for a different. Unsure if the report has been deleted or it is in their private reports.

https://www.linkedin.com/posts/steven-trumble_discovered-a-new-useful-soql-keyword-today-activity-7198366400841678848-AVur/