Blog: Salesforce #DataTipOfTheDay, Tips & Tricks, and Whatever Else
Data Storage by User, by Object
Q: "How do I get a detailed rundown of Salesforce data, by User, by Object?" A: AFAIK until now the only way to do this was to look user-by-user, at the URL that adheres to this format: https://na1.salesforce.com/setup/user/userstorageusage.jsp?id=0123456789ABCDE But I just created a Python script that'll automate this for ya. What can I say except. . . Suggestions welcome! |
Slackmoji Conundrum Solved
Inspired by Jordan Peele's "The Shining"-in-emoji Tweet, I was wondering how to say "Happy Passover" on my company's Slack. |
Save Me from Last Activity Date
Q: How do I determine the last time a user completed an Activity tied to a record? A: DO NOT USE Salesforce’s built-in Last Activity Date. Last Activity Date can occur in the future.¹ INSTEAD: Define better Custom Fields on Activity, and create a Report from a Custom Report Type to roll that field up to the desired object. Perform these five steps:
DATEVALUE(IF(IsTask, CompletedDateTime, IF(ActivityDateTime + DurationInMinutes / 1440 < NOW(), ActivityDateTime + DurationInMinutes / 1440, Null)))
IF(Has_Date_MARKED_Complete__c, TODAY() - Date_MARKED_Complete__c,
IF(Activity.Has_Date_MARKED_Complete__c:MAX = 1, If you want the Report to return a 999 if no Activity has been marked Complete for this Opportunity, use this formula: Activity.Days_Since_MARKED_Complete__c:MIN ¹ Q: How can Last Activity Date occur in the future?
Out-of-box, Salesforce allows both
. . . so either Tasks or Events can make an Opportunity’s Last Activity Date return a future date. ² Q: Why are these fields needed? A: Two reasons:
|
A Better Way to Bypass Data Validation
Q: "How do I make a record bypass Data Validation?" A: The Clever Way:
The problem with this approach: step 3.
Props to Hanna Martynenko for the idea! |
Get outta my Taskbar, Slack!
Q: "Why can't I minimize Slack to SysTray? I activated Slack's 'Leave app running in notification area when the window is closed' option. Why does the Slack app stay in my Taskbar?" A: There's a separate setting, "Flash window when receiving a notification", that has to be turned off. Lemme save 1E3 words: Props to mak4k on Reddit for solving this thing that's been driving me nuts for months. |
Keeping all the Live Agent settings straight
Q: "Deployments, Settings, Configurations. . . how can I keep all the Live Agent stuff straight?" A: Try the Live Agent "Object Model" and let me know what you think! |
Put a single Google Drive file in multiple folders
Q: "How do I put a Google Drive file (a Doc/Sheet/Presentation, or any old file) in multiple folders?" A: Shift+Z! I don't know why the Google Drive people hid this very necessary function in such an obscure corner, but there it is. Once you press Shift+Z and select another folder for the file to live in, that single file will be accessible from multiple folders. |
Set defaults for a new Google Sheet
Q: "How do I set my own defaults (eg, font, size, header rows) for a new Google Sheet?" A: Two answers, depending on the version of Google Sheets you're using.
|
When does Salesforce automatically create a Campaign Influence record?
Q: "When does Salesforce auto-create a Campaign Influence record?" A: Salesforce automatically creates a Campaign Influence record--an association between an Opportunity with a Campaign--under these conditions.*
Props to SteveMo for pointing this out first! * I'm not gonna get into Custom Campaign Influence Models here. |