FlowError: The number of results does not match the number of flow interviews | Building invocable actions The Right Way!
SFDC Stop
by
1M 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
2M 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
3M 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
3M 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
3M 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
Log LWC Event Messages using Lightning Logger : Event Monitoring in Salesforce
SFDC Stop
by
3M ago
Hello Trailblazers, In this post we're going to talk about lightning/logger module. This module can be used to log messages to salesforce event monitoring from your lightning web components. You can log the error messages as well as any kind of interactions that a user is having with your LWC component. Let's see how! A simple LWC component logging a message using Salesforce Event Monitoring on button click Before jumping onto the code, I just want to share a one liner about Salesforce Event Monitoring. Event Monitoring is basically a tool (EventLogFile object) in salesforce t ..read more
Visit website
LWC Lookup Component by Salesforce: Lightning Record Picker
SFDC Stop
by
4M ago
Hello Trailblazers, In this post, we're going to learn about lightning-record-picker which is basically an input field using which you can search for salesforce records. The basic code to implement the same is provided below: <template> <lightning-card hide-header label="Account Record Picker Card"> <p > <lightning-record-picker label="Select Account" placeholder="Type Something..." object-api-name="Account" ></lightning-record-picker> </p> </lightning-c ..read more
Visit website
Introducing Mastering Lightning Datatable in Salesforce LWC Course on Udemy
SFDC Stop
by
6M ago
Hello Trailblazers, I'm super excited to launch my first course on udemy titled Mastering Lightning Datatable in Salesforce LWC. In this course, you'll learn about almost every aspect of lightning datatable from scratch and you'll level up as a salesforce developer. I am giving away 100 free coupons to our amazing community. Fill in the below form and stand a chance to win the course for free! Loading… However, if you're interested to buy this course to get immediate access, you can buy it at the current best price using this link: https://www.udemy.com/course/mastering-lightning-datatab ..read more
Visit website
Lifecycle Hooks in LWC
SFDC Stop
by
9M ago
Hello Trailblazers, In this post we'll understand different lifecycle hooks of lightning web components. What is a Lifecycle Hook? A lifecycle hook is a callback method which is called automatically at some point during a lightning web component's lifecycle. In simple words, I can say: From the moment a component is initialized, till the moment it's removed from the page, there are various important instances that can be used by developers to perform various actions. So, in order to allow the developers to perform those actions, some callback methods are automatically called during these ins ..read more
Visit website
Child to Parent communication using LWC Events | LWC Tutorial | Lightning Events in LWC
SFDC Stop
by
1y ago
Hello Trailblazers,  I recently posted the below video on SFDC Stop YouTube Channel where we learned how can we communicate from a child lwc to a parent lwc using events. Tutorial Video In this post, I'm going to share the code snippet we used in the above tutorial with a brief explanation of the same. You can watch the small ~9min video, I shared above to learn the concept in detail. Let's have a look at the code snippets now! Child LWC First of all, we created a child lwc. This component will fire the event on a button click, which will be handled by the parent lwc. Let's have ..read more
Visit website

Follow SFDC Stop on FeedSpot

Continue with Google
Continue with Apple
OR