Silly Admin Trick: How to Access Salesforce “Platform Integration User” Profile

While trying to disable a record type I got the following message: This Record type Record_Type_Name Cannot be deactivated because of the following profiles use this record type as default. Upon clicking the profile “Platform Integration User” I get the “Insufficient Privileges”, so sad. Looking at the article linked below I put this URL together to access…

Silly Admin Trick: Random Character Generator

Sometimes what is so easy in other languages and scripting tools can be a real pain in Apex and Formula Fields. I am talking about random character generation. Not sure why this is not a method but have used this trick a couple of times and in doing some reading it actually taking about 1/10…

Wave / EA: Counting the number of weeks, months, days, etc. in SAQL

This was for some reason harder than it should have been. Needed to create the number of weeks from the beginning of the year to today. Re-posting this really because there are not a lot of examples out on the web. date_diff(“week”,toDate(“2018-01-01″,”yyyy-MM-dd”), now()) as ‘YearlyGoal’ I will go back later to make the start of the year…

Too many SOQL queries: 101 even when using testSetup

I am a huge fan of creating global test classes within Salesforce that leverage one testSetup section to set up the data that then can be used many times to test the many different methods and classes. Gone are the days of having a million test classes to manage and update every time changes are made in…

Silly Admin Trick: List of all Objects

Do the following to get a list of Objects by their API names: Pop in to Workbench Run the following query:SELECT SobjectType FROM ObjectPermissions Click Bulk CSV to download Click the query button to execute Open in Excel and Dedupe A quick and easy way to generating a list for creating backups using ‘Backup-force.com’: https://github.com/neowit/backup-force.com

Backing up Salesforce.com Meta Data on a Mac

There are a couple solutions both paid and free for backing up your Salesforce.com Metadata in addition to using an IDE like Eclipse. If you need something ‘free’ and on a schedule the best solution I have found has been: Alan Morey’s Force Meta Backup To use this tool though there’s a couple of prereq’s…

Find the API Name from the Field Label

I recently had a use case where I was going to take a drop down value and use that to pull a value from a separate lookup object. I would have “Hourly” and my logic would return “Hourly__c” which I could then use dynamic SOQL and sObjects to do some magic. I did not want to use hardcoded values…

Salesforce.com Icons

No school like the old school. A quick way to give quick visual feedback in the Classic Salesforce.com UI is to use the built-in icons in conjunction with a formula field. A source that I have used forever seems to work and then not work so I found another URL that seems to work: Does…