Hello Trailblazers!
Salesforce provides users with a robust reporting toolset that enables businesses to analyze their data, identify trends, and drive smarter decision-making. Among the various types of reports available in Salesforce, Summary Reports stand out as one of the most popular due to their ability to group and summarize data effectively. Summary reports allow users to group rows of data and apply aggregate functions like sums, averages, and counts, making them ideal for tracking metrics across categories.
In this blog, we’ll cover what summary reports are, when and why to use them, and provide step-by-step instructions to create a summary report in Salesforce.
In the previous part of this blog, we covered the steps for creating a Tabular Report in Salesforce. Understanding the basics of creating tabular reports is essential. To learn more about it, please follow this link.
A Summary Report in Salesforce is a type of report that groups data rows based on one or more fields and allows you to perform aggregate calculations, such as sums, averages, and counts, on the grouped data. This makes summary reports particularly useful when you want to analyze data by categories, such as opportunities by sales stage, accounts by region, or cases by priority.
Summary reports are perfect when you want to:
If you need a simple, flat list of records, you should consider using a Tabular Report instead.
Let’s walk through the steps to create a summary report.
When you click on New Report, Salesforce will prompt you to choose a Report Type. This determines the object(s) the report will pull data from.
Note: To learn more about creating Custom Report Types in Salesforce, please refer to this link.
After selecting the report type, Salesforce will open the report builder. Here, you can define and customize the filters to narrow down the data according to your requirements.
Apply both the standard and custom filters as shown in the figure below.
Next, add the fields that you want to display as columns in your report and group them to create a summary report.
This is the important step when your tabular reports converts into the summary report.
Summary reports allow you to apply aggregate functions such as sum, min, max, average and median etc.
So, in this way, you can also use other aggregate functions too.
If you want to visualize your data, you can add a chart to your summary report. This functionality is not available in the tabular reports.
At any point, you can preview the report to see how it looks.
The final report will look like this.
Once you’re satisfied with your summary report, you’ll want to save it so that others can access it.
You can also export the report. We already have discussed this in the tabular report blog. Please refer that blog for more details about how to export the report. The link is above and at the bottom of this blog post.
Here are a few real-world examples of how you might use summary reports:
Summary reports in Salesforce are a powerful tool for analyzing and summarizing your data, allowing you to group records, apply aggregate functions, and visualize key metrics. Whether you’re tracking sales performance, monitoring support cases, or analyzing revenue by region, summary reports provide the flexibility and insights needed to make data-driven decisions.
By following the steps outlined in this guide, you can create custom summary reports very easily.
In the next part of this blog, we’ll learn about creating Matrix Reports in Salesforce.
Until then, Keep Reading !!
“Kindness is a bridge that turns ordinary days into meaningful memories.”
1. Introduction to the Salesforce Queues – Part 1
2.Mastering Salesforce Queues: A Step-by-Step Guide – Part 2
3.How to Assign Records to Salesforce Queue: A Complete Guide
4. An Introduction to Salesforce CPQ
5. Revolutionizing Customer Engagement: The Salesforce Einstein Chatbot
Hello Trailblazers!
In Salesforce Lightning Web Components (LWC), the Navigation Service plays a crucial role in creating a seamless user experience by enabling easy, programmatic navigation between different pages, records, or external links.
In the previous Part 1 of this blog we saw the basics of the Navigation Services and how to navigate a user to the record page. If you would like to learn, please follow this link.
In this blog post, we’ll try to cover all the possible scenarios/examples for Navigation Services in Lightning Web Components.
So let’s get started…
Please find below the code snippet that demonstrates how the Navigation Service can be used to navigate to the New Opportunity record creation page when the ‘Create New Opportunity’ button is clicked.
navigationTest.html
<template> <lightning-card title="Navigation Service Demo"> <div class="slds-p-left_medium"> <lightning-button label="Create New Opportunity" onclick={navigateToNewOppPage}></lightning-button> </div> </lightning-card> </template>
navigationTest.js
import { LightningElement } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; export default class NavigationTest extends NavigationMixin(LightningElement) { navigateToNewOppPage() { this[NavigationMixin.Navigate]({ type: 'standard__objectPage', attributes: { objectApiName: 'Opportunity', actionName: 'new' }, }); } }
navigationTest.xml
<?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> <apiVersion>61.0</apiVersion> <isExposed>true</isExposed> <targets> <target>lightning__AppPage</target> <target>lightning__HomePage</target> <target>lightning__RecordPage</target> </targets> </LightningComponentBundle>
navigationTest.html
<template> <lightning-card title="Navigation Service Demo"> <div class="slds-p-left_medium"> <lightning-button label="Go to Opportunity Home Page" onclick={navigateToOpportunityHome}></lightning-button> </div> </lightning-card> </template>
navigationTest.js
import { LightningElement } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; export default class NavigationTest extends NavigationMixin(LightningElement) { navigateToOpportunityHome() { this[NavigationMixin.Navigate]({ type: 'standard__objectPage', attributes: { objectApiName: 'Opportunity', actionName: 'home' } }); } }
handleNavigateToExternalPage() { this[NavigationMixin.Navigate]({ type: 'standard__webPage', attributes: { url: https://blogs.perficient.com/author/amasane/' } }); }
To navigate to a list view, use the standard__objectPage type. You can also specify a filter in the filterName attribute.
handleNavigateToListView() { this[NavigationMixin.Navigate]({ type: 'standard__objectPage', attributes: { objectApiName: 'Contact', actionName: 'list' }, state: { filterName: 'Recent' // Optional filter for list views } }); }
If you have a custom Lightning app page or a Visualforce tab, use the standard__navItemPage type.
handleNavigateToCustomTab() { this[NavigationMixin.Navigate]({ type: 'standard__navItemPage', attributes: { apiName: 'MyCustomTab' } }); }
If you want to take users to a related list for a particular record, use the standard__recordRelationshipPage type.
handleNavigateToRelatedList() { this[NavigationMixin.Navigate]({ type: 'standard__recordRelationshipPage', attributes: { recordId: this.recordId, (you can also put recordId manually) objectApiName: 'Account', relationshipApiName: 'Contacts', actionName: 'view' } }); }
Through the examples provided above, we’ve demonstrated how developers can effectively utilize Navigation Services within their Lightning Web Components to enhance navigation and user experience.
Happy Reading !!
The journey of learning never ends; every moment is a chance to grow.
1.A Comprehensive Guide to Custom Report Type in Salesforce
2.Mastering Salesforce Queues: A Step-by-Step Guide – Part 2
3.How to Assign Records to Salesforce Queue: A Complete Guide
4. An Introduction to Salesforce CPQ
5. Revolutionizing Customer Engagement: The Salesforce Einstein Chatbot
]]>
Hello Trailblazers!
Lightning Web Components (LWC) has transformed how developers create modern and efficient applications within the Salesforce platform. One of the key functionalities that enhances user experience in LWC is the Navigation Service. This service allows developers to navigate between different components, pages, or external URLs with ease.
In this blog, we’ll explore the Navigation Service in detail, covering its key features, use cases, and examples to help you use it effectively in your Lightning Web Components.
In Part 1 and Part 2 of this Navigation Series, we’ve tried to cover all the scenarios possible by Navigation Service in LWC.
So, let’s get started…
The Navigation Service in Lightning Web Components provides a way to navigate programmatically between pages in the Salesforce app. It allows developers to direct users to standard Salesforce Record pages, Objects, Custom Tabs, Related Lists, custom components, or external websites with minimal effort.
Some of the most common use cases for Navigation Services include:
Now that we’ve covered the basics, let’s dive into how to implement the Navigation Service in your LWC Components.
First, you need to import the NavigationMixin from the lightning/navigation service. This mixin provides the methods required for navigation.
import { NavigationMixin } from 'lightning/navigation';
Next, extend the NavigationMixin in your component’s class. This allows your component to inherit the navigation functionality.
export default class MyComponent extends NavigationMixin(LightningElement) { // Component logic here }
To navigate between pages, you’ll define a method in your component that uses the navigate() function from the NavigationMixin.
Example: Navigating to a Record Page
handleNavigateToRecord() { this[NavigationMixin.Navigate]({ type: 'standard__recordPage', attributes: { recordId: this.recId, (you can also paste particular record id here in some cases) objectApiName: 'Account', actionName: 'view' } }); }
In this example, the type is set to standard__recordPage, which specifies that you’re navigating to a record page. The attributes section defines the recordId, the object (Account), and the action (view or edit).
Add a button or another interactive element in the component’s template/html side to trigger the navigation method when clicked.
<template> <lightning-card title="Navigation Service Demo"> <div class="slds-p-left_medium"> <lightning-button label="Go to Account" onclick={handleNavigateToRecord}></lightning-button> </div> </lightning-card> </template>
Now, when the user clicks the button, they’ll be redirected to the specified account record.
In Part 2 of this blog post, we’ll see more scenarios in which Navigation Service can be used.
The Navigation Service in Lightning Web Components is a versatile tool that allows for efficient, programmatic navigation within the Salesforce platform. By understanding how to navigate between standard pages, custom components, and external URLs, you can greatly enhance the user experience in your LWC applications.
Happy Reading !!
The journey of learning never ends; every moment is a chance to grow.
1.A Comprehensive Guide to Custom Report Type in Salesforce
2.Mastering Salesforce Queues: A Step-by-Step Guide – Part 2
3.How to Assign Records to Salesforce Queue: A Complete Guide
4. An Introduction to Salesforce CPQ
5. Revolutionizing Customer Engagement: The Salesforce Einstein Chatbot
]]>
Hello Trailblazers!
Dynamic Dashboards in Salesforce are a powerful tool that allows users to view data and metrics based on their individual access levels without needing to create separate dashboards for different users or roles. This feature enhances the customization and personalization of data visualization, making it easier for users to track performance, monitor KPIs, and make data-driven decisions relevant to their specific roles.
In this blog post, we’ll learn:
So let’s get started…
A Dynamic Dashboard in Salesforce allows users to view a dashboard that automatically adjusts based on the logged-in user’s data access and permissions. Unlike traditional dashboards, where data is static and the same for all users, dynamic dashboards adapt based on each user’s security settings, ensuring that sensitive data is only visible to those with the appropriate access.
|
Standard Dashboards |
|
||||
|
Shows the same data to all users with dashboard access. | Displays data based on each user’s access and permissions. | ||||
Customization | Requires separate dashboards for different users. | One dashboard adapts for multiple users. | ||||
|
Best for fixed views or team-level dashboards. | Ideal for personal or role-specific data tracking. |
Note: If you’re interested in learning more about Salesforce Dashboards, how to create them, and the various dashboard components available in Salesforce Lightning, please feel free to explore this link.
Creating a dynamic dashboard is straightforward, and the process is similar to creating a standard dashboard, with an additional setting to make it dynamic. Here’s how you can set up a dynamic dashboard:
Note: If you would like to learn more about various dashboard components in Salesforce and how they’re created, please follow this link.
This is the critical step that transforms a regular dashboard into a dynamic one.
Follow the below steps:
You will notice that the user has been updated, and the dashboard now displays only the data that the user has access to.
The current user has more limited access to Opportunities compared to the previous user. As a result, the Gauge Chart component now displays only the records that the current user has permission to view.
Dynamic dashboards in Salesforce are a valuable feature that enables users to view personalized data based on their roles and access levels. This eliminates the need for multiple dashboards while ensuring data security and relevance. By following the steps outlined in this guide, you can easily create and manage dynamic dashboards that provide your team with real-time, customized insights.
Happy Reading !!
The journey of learning never ends; every moment is a chance to grow.
1.A Comprehensive Guide to Custom Report Type in Salesforce
2.Mastering Salesforce Queues: A Step-by-Step Guide – Part 2
3.How to Assign Records to Salesforce Queue: A Complete Guide
4. An Introduction to Salesforce CPQ
5. Revolutionizing Customer Engagement: The Salesforce Einstein Chatbot
]]>
Hello Trailblazers!
Salesforce Lightning Experience is packed with powerful tools that allow users to visualize, analyze, and act on their data more efficiently. Dashboard are an integral part of this functionality, providing real-time insights into your Salesforce data with visually compelling charts, graphs, and tables.
One of the key features in Salesforce Lightning is the ability to embed these dashboards directly into Lightning pages. This makes it easier for users to view important metrics without navigating to the separate Dashboard tab.
In this blog, we’ll explore how to add dashboards to Lightning Pages in Salesforce Lightning, including use cases, step-by-step instructions, and best practices for maximizing dashboard effectiveness.
Before embedding a dashboard into a Lightning page, you need to have a dashboard ready. If you don’t already have one, follow these steps to create a dashboard in Salesforce:
In our previous blog on Salesforce Dashboards, we provided a detailed explanation on how to create dashboards in Salesforce Lightning. If you’re interested in learning more, feel free to follow this link.
Next, you’ll use the Salesforce Lightning App Builder to add the dashboard to a Lightning page.
Here we’re adding the dashboard to the Home Page.
After placing the component, a panel will appear on the right-hand side. Here, you can configure the settings for the dashboards component:
Thus, the dashboard on the Home page will look like this:
Note: If you’re interested in learning more about Salesforce Dashboards, how to create them, and the various dashboard components available in Salesforce Lightning, please feel free to explore this link.
Adding dashboards to Lightning pages in Salesforce can significantly enhance user experience by providing quick and easy access to important data. By embedding dashboards directly into Lightning pages, users can gain real-time insights, streamline workflows, and improve decision-making. Following the steps outlined in this guide, you can easily configure and embed dashboards into your Salesforce Lightning pages, customizing the experience to suit the needs of your organization.
Happy Reading !!
The journey of learning never ends; every moment is a chance to grow.
1. Introduction to the Salesforce Queues – Part 1
2.Mastering Salesforce Queues: A Step-by-Step Guide – Part 2
3.How to Assign Records to Salesforce Queue: A Complete Guide
4. An Introduction to Salesforce CPQ
5. Revolutionizing Customer Engagement: The Salesforce Einstein Chatbot
]]>