Transform a Set of IDs into a Set of Strings Using Apex
Here is a concise one-liner of code
Here is a concise one-liner of code
Select Domain FROM domain The Domain object is related to Site.com, which will not return org domain. So what is workaround? Here is below code snippet.
QUESTIONIs it possible to retrieve the current Step Number for an approval process via a query? If so how? I don’t see this as available field in the ProcessInstanceNode object. Note: Looking for Step Number – not step name ANSWER Let’s understand Data model behind approval process.ProcessInstance : This table store the data about which record …
Expressions assist in selectively showing or concealing elements within markup based on conditions. Expressions within Aura In Aura, expressions can be composed as demonstrated earlier, while in LWC, it’s not feasible to directly construct such expressions within the markup. Instead, expressions must be authored in JavaScript, and their outcomes can be employed in the markup. …
How to utilize conditional expressions in LWC with if true and if:false Read More »
In this blog, we will study test classes in apex, the best practices of test classes, and how to implement them. So, let’s begin with an introduction. Advantages of Apex Unit Testing Code Coverage Mandate for Deployment Points to Remember Syntax of Test Methods Test Class Containing a Test Method We can incorporate multiple test methods …
An Overview of Apex Unit Tests | Developer’s Guide Read More »
Goals Upon reading this blog, you will gain the ability to: Apex Script to Access Custom Labels Dynamically Salesforce has released following option: To access the Developer Console, click on Setup, and then select “Developer Console.” In the Developer Console, I will utilize the “Execute Anonymous Apex” tool to run the Apex code. An “anonymous …
With help of “Database.DMLOptions” standard class, we can achieve the requirement as below: Lead Example Case Example
Last Updated on July 25, 2023 by Ayub Ansari . Big Idea or Enduring Question: Objectives: After reading this blog, you’ll be able to: Business Scenario or Business Case: Auraan, a Junior Developer at Tenetizer on Cloud (GoC), has been assigned a business requirement to create an LWC component with the following features: The approach taken by …
Integrate screen flows within a Lightning Web Component Read More »
Currently, it is possible to customize CSS for standard Lightning Base Components using styling hooks. What are Styling Hooks Styling hooks leverage CSS custom properties, simplifying the process of customizing component styling. By using CSS custom properties as hooks, we can easily personalize the SLDS (Salesforce Lightning Design System) component with our desired style. Where …
Override the standard CSS of a Lightning button using CSS styling hooks Read More »
Introduction At times, I have encountered confusion regarding the process of parsing a JSON string to extract the desired value. Now, we will explore the steps involved in achieving this. Example JSON Simplified Approach This method I discovered is the easiest among all the ones I have attempted. You can simply copy the JSON string …
How can I process a JSON response in Apex Salesforce Read More »