Posts

Salesforce BiometricsService Mobile Capability

Image
What is a Biometrics Service? A Biometrics Service is a software component or system that provides functionality for biometric authentication. Biometric authentication involves using unique biological characteristics of individuals, such as fingerprints, facial features, iris patterns, or voiceprints, to verify their identity. Why is Biometrics Service important? The Biometrics Service is an essential tool that provides a highly secure, convenient, and reliable method for verifying individuals based on unique biological characteristics like fingerprints, facial features, or iris patterns. By using biometric authentication, organizations can improve security, reduce fraud and identity theft, comply with regulations, enhance operational efficiency, and offer a seamless user experience across various applications and industries. Biometrics offers a future-proof solution for identity verification that is adaptable to different use cases and scalable to accommodate large user bases and tran...

Five-Level Parent-to-Child Relationship SOQL Queries in Apex

Apex now supports traversing up to five levels of parent-child records with SOQL relationship queries. Each subquery counts towards the aggregate queries processed in an SOQL query statement. Starting from API version 61.0, SOQL parent-child relationship queries in Apex can be structured such that the first level of the query is a parent root, and child relationships can be queried up to four levels deep from the parent root. You can keep track of the number of aggregate queries processed in an SQL statement using the Limits.getAggregateQueries() method. The Limits.getLimitAggregateQueries() method returns a value of 300, the total number of aggregate queries that can be processed with SOQL query statements. This change applies to all editions. Below is an example of a Salesforce SOQL query statement with five levels of parent-child relationships. List<Account> accts =  [SELECT Name,     (SELECT LastName,         (SELECT AssetLevel,    ...

Use Apex Cursors for Expanded SOQL Query Result Support

Apex cursors allow you to process large query results without returning the entire result set in a single transaction. With cursors, you can traverse query results in parts and navigate forward and back. This makes it easier for developers to work with high-volume and resource-intensive jobs. Cursors are a great alternative to batch Apex as they can be used in a chain of queueable Apex jobs and are more powerful in many ways. They are especially useful for package and advanced developers who regularly work with large query result sets. NOTE: This feature is a Beta Service, which applies to all the salesforce editions. Apex cursors are stateless and generate results from the offset specified in the Cursor. fetch(integer position, integer count) method. You must track the offsets or positions of the results within your particular processing scenario. A cursor is created when a SOQL query is executed on a Database.getCursor() or Database.getCursorWithBinds() call. When a Cursor. fetch(...

Salesforce Scale Center

Image
Salesforce Scale Center helps developers proactively identify and fix performance issues in their implementations. Get started with the Salesforce Scale Center Scale Center is free to use and is accessible in all UE production and full-copy sandbox orgs.  Product considerations:  Scale Center has no impact on org performance and does not access your org data  Please note that Scale Center isn’t supported in Government Cloud Plus  If you would like Scale Center enabled in a non-UE org, please reach out to your account representative Here are some of the benefits of Scale Center View real-time performance metrics. Detect performance hotspots before and after you scale. Compare performance over different periods. Performance Metrics Compare performance over different periods Performance Analysis Resources - Scale Center Salesforce Scale Center is Generally Available Trailhead: Scale Center: Quick Look Trailhead: Explore Scalability

ApexGuru Insights

Image
"ApexGuru Insights": Have you guys tried it?  Please note that it's only available in Unlimited Editions ApexGuru automates the detection of critical anti-patterns and performance hotspots in your apex code (runtime profiles) and provides customers with AI-driven insights and prescriptive code recommendations. ApexGuru is a solution that helps Salesforce Developers improve the quality of their Apex code by identifying and addressing critical anti-patterns and hotspots. It uses runtime profiles to provide actionable insights and code recommendations, powered by state-of-the-art generative AI models developed in collaboration with Salesforce AI Research. With ApexGuru, developers can effectively tackle critical scale issues in their Apex code. The best part is that ApexGuru is available at no extra charge to all Scale Center customers, including UE production and full-copy sandbox orgs, signature orgs, and all Scale Test customers. Considerations ApexGuru has no impact on o...

Log messages using LWC with lightning/logger

Image
The lightning/logger module offers a convenient way to enhance the observability of your Lightning web components by using the Custom Component Instrumentation API. You can use the log() function to create custom messages and log them from your components to Event Monitoring. It is important to note that lightning/logger can only be used in the Lightning Experience, and is not available in the Salesforce mobile app. To use lightning/logger, you must ensure that Event Monitoring is enabled in your org and that the "Enable Lightning Logger Events" toggle is set to On. The lightning/logger module has only one method, log(). This isn't supported for Aura components According to Salesforce documentation, this change is only available for customers who have purchased Salesforce Shield or Salesforce Event Monitoring add-on subscriptions. Enable Event Monitoring Settings Here's an example from Salesforce In JavaScript, import the log from lightning/logger and use it in the h...

ZipSupport In Apex

Image
The ZIP Support (Developer Preview) feature is currently available as a Developer Preview. You can create and extract ZIP archive files using the classes and methods in the Compression namespace.  However, this feature is not yet generally available unless Salesforce announces its general availability in documentation or public statements.  Features, commands, and parameters may change or be removed at any time without notice. Salesforce recommends avoiding the use of compression methods in a production environment. With this feature, you can compress multiple attachments or documents into an Apex blob that contains the ZIP archive. You can also extract specific data from the ZIP archive without having to uncompress the entire archive. To optimize compression, you can specify a compression method and compression level. This feature is available in scratch orgs where the ZipSupportInApex feature is enabled. If the feature isn’t enabled, Apex code with this feature can be compil...