Salesforce – Automate Your Currency Rates

In one of the projects, there was a requirement to allow Finance Users to update currency rates. But managing currencies in Salesforce require having both “Customize Application” and “View Setup and Configuration” permissions. That would give access to multiple setup features, not only related to currencies.

That brought me a question – what if there are more organizations with similar need. How to allow Finance User to update currency rates without having to ask System Admin to do that?

Salesforce – How to automatically clean up profiles and permission sets?

I recently had a problem – I needed to

  1. retrieve profiles and permission sets from Salesforce dev org
  2. clean them up to prepare for deployment

Although retrieving is easy, manual cleaning takes some time. Especially when you have to do the same from time to time.

This might happen if we have different API version between orgs, or a
managed package installed in source org and not in destination org.

Salesforce – How to solve Insufficient Privileges error?

Have you ever received Insufficient Privileges error after trying to access some record? Or maybe one of your Salesforce users reported this problem?

Not everyone knows that Salesforce provides a handy feature that allows checking why a specific user has access to some record (for standard or custom object).

Salesforce – How can I get the code coverage of a class / org?

To get code coverage of a class or all classes you can use Tooling API on objects like:

  • ApexCodeCoverage – contains coverage per class per test class
  • ApexCodeCoverageAggregate – contains coverage per class for all test classes
  • ApexOrgWideCoverage – contains coverage overall for all classes in the org

The best way is run queries using Developer Console

Salesforce – Audit Trail Parser

When I was preparing my first change set, I was a bit surprised that I couldn’t get information about what was changed recently. Then I learned that there is Audit Trail which stores this kind of information as a changelog.

So I prepared a tool where you can upload a CSV file (from View Audit Trail section) and it will show you the changes made in the system (changed Apex classes, VF pages, objects, fields, profiles etc.).