My Top 5 Apex APIs and Bonus

Andy in the Cloud

As readers of this blog will already have determined, I love API’s! So when I was approached by the team at 100 Days of Trailhead to share my Top 5 “things” my mind fell to API’s. This is a short blog post because effectively the brief was a 10 minute video! Well ok I ran a bit over in the end so its actually 15 minutes.

In the video I cover 5 Apex API’s and a Bonus API at the end. Thank you for 100 Days of Trailhead for asking to contribute and please do check out all the other amazing content they have on their website! You can watch the video below (or link here) and find full source code in this GitHub repository.

https://100daysoftrailhead.com/

/** .----------------. | .--------------. | | | _______ | | | | | _____| | | | | | |____ | |…

View original post 391 more words

Scheduled Flows: How do they work?

 forcePanda

Very recently, one of my fellow #flownatic friend, Andy, shared a tweet about scheduled flows which led to some interesting suggestions on the thread.

The question here is which approach should you be taking, left or right? Take a moment to think about it! Which one did you pick?

So the ideal approach here would be the flow on the left. There is a ‘but’ here, that’ll get to a little later.
Before that let’s understand what’re the pitfalls of using the flow on the right.

  1. Can very easily hit 50,000 records SOQL limit.
  2. Even before 50k records SOQL limit, it will hit 2000(Maximum) elements executed limit.

Here, the 2nd pitfall is very specific to this…

View original post 698 more words

Trailhead Review: Apex Specialist Superbadge

Teach Me Salesforce

This article is about my first Trailhead Super Badge, the Apex Specialist.

Challenge 1
Challenge 1 requires a fair amount of declarative admin work to get the objects and components in place to allow you to test in the UI (you could probably write the code without it but it’s important to test in the UI and in code).

Because Trailhead playgrounds use the base Developer Edition architecture, there are also all the usual custom fields and data, so it’s helpful to be familiar with that so that you can easily distinguish the components added by the managed package and those that are in every DE org (like SLAViolation__c).

I predict that the creation of Products in the unit tests could be annoying if it involves adding them to an active Price Book :/

The instructions are appropriately vague, like real-world requirements, and do require you to read them…

View original post 375 more words

Navigate to Flow Screens Dynamically with Custom Navigation Buttons

 forcePanda

I recently came across a very interesting use case(thanks to Sarah Khalid).

Imagine you have a flow screen with a bunch of custom navigation buttons that take you to the next flow screen when clicked. But what if you want to navigate to different screens based on the button you clicked?

NOTE: One way to solve this is by replacing custom navigation buttons with radio buttons paired with a Decision element and navigate to screen based on the selected radio button. However, this costs you an extra click and also makes the design less intuitive.

So what can we do?

Let’s take a very simple example and see how we can solve this.

We have a screen with three custom navigation buttons(Button 1, 2 and 3) and we want to automatically navigate to Screen 1, 2 and 3 when the respective button is clicked.

Idea

The idea is simple…

View original post 230 more words