Martins Thoughts on Salesforce

How to write SOQL queries with dates

Anw how to remember the format in the future

How to write SOQL queries with dates Date formats and SOQL may be super straightforward. But if you work with multiple languages, it may be hard to remember how you use dates and times in SOQL queries. TL;DR; Format: YYYY-MM-DDTHH:MM:SSZ Example: 2023-05-04T12:02:23Z There is a quick way to get to the format if you forget it. You can, in your developer instance, open the developer console and write the following piece of “anonymous apex” (check the “Open Logs” box before hitting “Execute”).

Salesforce World Tour - Essentials Stockholm 2023

A long waited for Salesforce event

Salesforce World Tour - Essentials Stockholm 2023 After four years, it was finally time for another Salesforce event. I missed many of them, but with the pandemic, this was the first live event since I last visited a World tour event. It felt like a completely new thing I had never done before. I came without any expectations and was blown away by the sheer amount of people and energy.

How many flows should I have per object?

How to structure your automations in an ever growing Salesforce instance

How many flows should I have per object? With Salesforce announcing the retirement of two of the most well-used tools, workflow rules, and process builder, you may be migrating your automations to flows. While doing this, a natural question may be how to structure your flows best. But to start with, let’s look at how other automation types are structured on the platform. Writing automations using APEX The most powerful and complex way of creating automations on the Salesforce platform is to use code.

Salesforce announced a new affordable API-only license

How and why you should use this new license type

Salesforce announced a new affordable API-only license This is how and why you should use them As you might have heard by now, Salesforce announced a new, more affordable license during Trailblazer DX23. This new license became available in different Salesforce orgs on March 14th. In Salesforce Developer instances, one license should be made available (alas, I have yet to see it in any of my developer instances). Additionally, in paying orgs, 5 free Salesforce Integration licenses should exist free.

Create Collections in APEX and initiate them

A cheat-sheet for the Salesforce developer

Create Collections in APEX and initiate them As a developer of multiple languages, I must remember how to create the different collection types when writing code in APEX. Sure, it is simple enough to make an empty collection, but you often want to create and initialize it simultaneously. This is when my memory struggles to remember. You may be the same - and here is a small cheat sheet that will help you in these situations.