Expressions and Operators in Apex - Salesforce Apex Tutorial Part 17 and Above
SFDC Stop
by
2M ago
Aloha Trailblazers, In this post, I'm sharing the code snippet for Coding with Confidence: The Fun Way to Learn Salesforce Apex tutorial series part 17 and above: // * Expressions and Operators in Apex /* ? What is an Expression? * An expression is a combination of variables, operators, and method calls that results in a specific value. There can be different types of expressions: */ // * Literal expression Integer num = 2+3; System.debug('2+3=' + num); /* * New instance of an object, list or map * Left hand of an assignment operators */ List<Integer> numbers = new ..read more
Visit website
Apex Constants and Enums - Salesforce Apex Tutorial Part 14 and Above | Code Snippet
SFDC Stop
by
2M ago
Aloha Trailblazers, In this post, I'm sharing the code snippet for Coding with Confidence: The Fun Way to Learn Salesforce Apex tutorial series part 14 and above: // * Constants and Enums in Apex /* ? What is a Constant? * A constant is a variable whose value cannot be updated after initialization. Constants are defined in apex using the "final" keyword. */ final Decimal PI = 3.14; System.debug('Value of PI Decimal constant is ' + PI); PI = 2.45; System.debug('Value of PI Decimal constant is ' + PI); /* ? What is an Enum? * An enum (short for enumeration) is a special data t ..read more
Visit website
Collections in Apex - Salesforce Apex Tutorial Part 8 and above | Code Snippet
SFDC Stop
by
4M ago
Hello Trailblazers, In this post, I'm sharing the code snippet for Coding with Confidence: The Fun Way to Learn Salesforce Apex tutorial series part 8 and above below: // * Collections in Apex /* * There are 3 types of collections in apex: * 1. List * 2. Set * 3. Map */ // * List - Part 1 // * List: A list is an ordered collection of elements. We can create a list of any data type like: primitive data types, collections, sObjects, custom data types etc. // * Creating a list of names List<String> names = new List<String>(); names.add('Richard Hendricks'); na ..read more
Visit website
Unlocking the Power of Einstein Search in Salesforce
SFDC Stop
by
7M ago
Hello Trailblazers, In this post, we're going to learn about Einstein Search in detail. This post is contributed by Dorian Sabitov who's a 4x certified Salesforce Admin and Developer. You can learn more about Dorian in the Author's Bio section at the end. I really liked the post as I reviewed it and I hope you'll like it too. Let's talk about Einstein Search now: Introduction: Einstein Search Salesforce, recognized as the leading CRM platform, has continually evolved to meet the dynamic needs of businesses by integrating advanced AI capabilities. This commitment is illustrated throu ..read more
Visit website
Building Blocks of Apex: Variables & Data Types Explained Simply - Salesforce Apex Tutorial Part 2 & 3 | Code Snippet
SFDC Stop
by
7M ago
Hello Trailblazers, In this post, I'm sharing the code snippet for Coding with Confidence: The Fun Way to Learn Salesforce Apex tutorial series part 2 and 3 below: // * Variables & Data Types in Apex /* ? What is a variable? * A variable is simply a named storage/memory location that contains a value. In apex, all variables have a "data type". ! Each variable is by default initialized to null ? What is a Data Type? * Data type is a keyword associated with a variable. It basically represents the type of data which that variable will store. * List of primitive data types: * 1. Bool ..read more
Visit website
FlowError: The number of results does not match the number of flow interviews | Building invocable actions The Right Way!
SFDC Stop
by
9M ago
Hello Trailblazers, In this post we're going to learn, how we can build apex invocable actions The Right Way. It might be possible that you've faced this issue in the past: FlowError: The number of results does not match the number of flow interviews Today, we're going to build an apex invocable action, call it from flow in a scenario such that it fails and then fix the error to make sure it works perfectly fine. Let's Begin! Use Case We have a custom object named Application (Application__c), the details of that object are provided below: As you can see above, our name field is Appl ..read more
Visit website
Repeater Component (Beta) in Salesforce Flow | Spring'24 Release
SFDC Stop
by
10M ago
Hello Trailblazers, In this post we're going to learn about new Repeater component provided by salesforce for screen flows. Let's begin! Screen Flow: Create contacts for Account Let's start with a basic use case: We want to create multiple contacts for our account record in one go. The standard screen flow approach for this will be: Show contact fields (contact form) on a screen, the user can fill those, maybe have a checkbox at the end which says, do you want to create another contact? If the user checks it, reload the same screen again on clicking next button so that the user can fill ..read more
Visit website
Display calculated information on the same screen in screen flow | Use Display Text as Reactive Component | Spring'24 Release
SFDC Stop
by
11M ago
Hello Trailblazers, Salesforce recently allowed some more components to react to changes happenning on the same screen in a screen flow. In this post, we're going to take a look at an example to understand this update. Screen Flow: Time Log Let's say you're working on an HR Application created in salesforce. You want your company's employees to add/update their weekly time log on a screen. Let's create a screen flow for the same. Creating the base flow with empty screen 1. Go to Setup and search for Flows. Click on the New Flow button to create a new flow 2. On the New Flow screen, cho ..read more
Visit website
Solution for "System.QueryException: List has no rows for assignment to SObject" - Null Coalescing Operator (??) | Spring'24 Release
SFDC Stop
by
11M ago
Hello Trailblazers, According to the International Survey of Issues faced by Salesforce Developers (which was NEVER conducted) by SFDC Stop: Every salesforce developer has faced the below error at least once in their developer career: System.QueryException: List has no rows for assignment to SObject This error mainly occurs when you're trying to perform a SOQL query which (ideally) should return a single record and you're trying to store that record in a variable of that sObject type which you're querying. Let's take a look at the below code as an example: Contact contactRecord = [SELECT N ..read more
Visit website
Embed screen flow in LWC component: Pass data to screen flow and Receive data from Screen Flow
SFDC Stop
by
11M ago
Hello Trailblazers, You might have come across the below blog posts published by me in the past: How to pass data from lwc to screen flow in salesforce? How to pass data from screen flow to lwc in salesforce? You might be thinking, what the heck are we doing in this post then??? Give me a moment to clarify: In the above posts, we actually embedded a LWC component within a screen flow and passed data to it/received data from it. However, in today's post, we're going to do exactly the opposite. We're going to embed a screen flow within a LWC component and pass data to screen flow, receive d ..read more
Visit website

Follow SFDC Stop on FeedSpot

Continue with Google
Continue with Apple
OR