Posts

Showing posts from 2023

Nebula Logger for Salesforce

Nebula Logger for Salesforce is a logging and monitoring solution specifically designed for Salesforce applications. It provides developers and administrators with enhanced visibility into the behavior, performance, and usage of Salesforce components and processes.  Nebula Logger is built natively on Salesforce, using Apex, lightning components, and various types of objects. There are no required external dependencies Unleash the Power of Advanced Logging with Nebula Logger | Dreamforce 2023 Why Nebula Logger Unleash the power of Advanced Logging Nebula Logger is an open-source framework developed by Jonathan Gillespie. It allows for considerably more robust debugging & error logging. It offers a neat solution to gather all the scattered data into one organised space. Helps link batch job logs together, aura and LWC logs together, and retain your debug logs for longer. Out-of-the-Box Salesforce Debugger Limitations Only Apex can directly add debug statements - in Flow and ...

Find Case ThreadId using Apex and Formulas

Ensure that an email sent to your customer support email is attached to an existing case using Thread ID. Formula - "ref:_" & LEFT($Organization.Id,5) & RIGHT($Organization.Id,5) & "._" & LEFT(Id,5) & SUBSTITUTE(Left(RIGHT(Id,10), 5), "0", "") & RIGHT(Id,5) & ":ref" Apex -  ref:_'+ UserInfo.getOrganizationId().left(5) + UserInfo.getOrganizationId().mid(11,4) + '._'+ caseId.left(5)+ caseId.mid(10,5) + ':ref ]'; The actual extraction of the thread ID is looking for anything in between "ref:" and ":ref" Example of a thread id: ref:_00D30oKPx._50030bwIii:ref Note: If multiple thread IDs are included in the header or the body of the email sent, the email will attach to the Case that is represented by the first thread ID in the string: Example  [ ref:_00D30oKPx._50030bwIii:ref ] [ ref:_00D30oKPx._50030bMuaN:ref ]  the email will attach to the case represented by ref:_00D30oKP...

Salesforce Well-Architected Framework

Image
The Salesforce Well-Architected Framework is a set of guidelines for building secure and scalable solutions on the Salesforce platform that meet business requirements and industry standards.  Salesforce Well-Architected provides guidance and examples for building trustworthy, user-friendly, and flexible solutions on the Salesforce Customer 360 Platform. It offers insights from product teams and implementation experts to help you identify areas for improvement in your landscape. Salesforce Well-Architected Framework Salesforce Well-Architected has two levels of organizing information. The top level includes well-architected solutions that should be Trusted, Easy, and Adaptable. The second level provides more detailed considerations, patterns to follow (or anti-patterns to avoid), and prescriptive guidance for specific aspects of those solutions. Aligning your designs with this framework's guidance ensures higher quality and longevity for your Salesforce Customer 360 applications.

Lightning Record Picker Component in Salesforce

Image
The lightning-record-picker is a Salesforce Lightning Web Component that allows users to search and select a record from a specified object. It provides a user-friendly interface for selecting records and can be used in various contexts within Salesforce Lightning Experience. The lightning-record-picker component can be used in a Salesforce application to allow users on desktop or mobile devices to quickly find and select Salesforce records. The component's behavior and presentation can be configured, and filtering can enable users to retrieve and display records that meet specific criteria. This feature is generally available and includes changes since the last release. Previously, the component allowed for a maximum of 50 records, but now you can retrieve up to 100. Additionally, the component displays clear error messages when configuring invalid specifications and supports new attributes. To enable offline use, this component uses the GraphQL wire adapter. Below is an imaginar...

Learn about the APIs available on the Salesforce Platform.

Image
The Salesforce Platform APIs offer a wide range of tools that allow you to integrate and extend Salesforce functionality. These APIs enable you to access, manipulate, and interact with your Salesforce data in various ways. Whether you want to create custom applications, automate business processes, or integrate with other systems, the Salesforce Platform APIs provide the flexibility and scalability to meet your needs. Salesforce API-first approach to development Salesforce adopts an API-first strategy for developing features on its platform. This entails building a strong API for a feature before concentrating on designing its user interface. This approach provides flexibility to Salesforce developers in manipulating their data as they desire. In addition, it allows Salesforce to develop user interfaces on top of the APIs, guaranteeing consistent behavior across them. The Salesforce Data APIs consist of four different APIs: REST API, SOAP API, Bulk API, and Pub/Sub API. Their primary ...

Types Of Salesforce Products/Clouds

Image
Salesforce offers several editions tailored to the diverse needs of businesses, from small startups to large enterprises. Here are some of the key editions available as of my last update: All Salesforce products. Salesforce Product Pricing Salesforce Essentials : Designed for small businesses, it provides basic CRM functionality to help with sales and customer support. Sales Cloud : This edition is focused on sales automation, lead management, contact management, opportunity management, and sales forecasting. Service Cloud: Geared towards customer service and support, it includes features for case management, knowledge base, and omni-channel support. Marketing Cloud : Aimed at marketers, it offers tools for email marketing, social media marketing, digital advertising, and analytics. Commerce Cloud : Formerly known as Demandware, this edition is for businesses looking to create personalized shopping experiences across various digital channels. Community Cloud : Enables companies to bui...

Decode JWT (JSON Web Token) in Apex

Image
A little bit about JWT Tokens JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties. The claims in a JWT are encoded as a JSON object that is used as the payload of a JSON Web Signature (JWS) structure or as the plaintext of a JSON Web Encryption (JWE) structure, enabling the claims to be digitally signed or integrity protected with a Message Authentication Code (MAC) and/or encrypted. Here's a code snippet to decode a JWT Token   String tempJWTToken = 'eyJraWQiOiIwOE1XOU11bThySnc3VGdpRXM1R3M2ckZBUlpET0dBRyIsImFsZyI6Il JTMjU2In0 . eyJkYXRhIjp7ImV4cGlyYXRpb25ZZWFyIjoiMjAyMyIsIm51bWJlciI6IjQxMTExMVhYWFhY WDExMTEiLCJleHBpcmF0aW9uTW9udGgiOiIwMiIsInR5cGUiOiIwMDEifSwiaXNzIjoiRmxleC8wOCIsIm V4cCI6MTYyMjY2NzM5MywidHlwZSI6Im1mLTAuMTEuMCIsImlhdCI6MTYyMjY2NjQ5MywianRpIjoiMUUw RVRWVktaNjVGMFpBQlZIQ01CRk1RTExWT0wxUE42REdCTkc1UDFEVlNBWDZQQ1ZaSzYwQjdGMDgxQzhBQ iIsImNvbnRlbnQiOnsicGF5bWVudEluZm9ybWF0aW9uIjp7ImNhcmQiOnsiZXhwaXJhdGlvblllYX...