Salesforce Blogs Articles / Blogs / Perficient https://blogs.perficient.com/tag/salesforce-blogs/ Expert Digital Insights Wed, 16 Jul 2025 10:28:22 +0000 en-US hourly 1 https://blogs.perficient.com/files/favicon-194x194-1-150x150.png Salesforce Blogs Articles / Blogs / Perficient https://blogs.perficient.com/tag/salesforce-blogs/ 32 32 30508587 My Experience at the Salesforce Nagpur Ohana Gathering – June 2025 https://blogs.perficient.com/2025/07/16/my-experience-at-the-salesforce-nagpur-ohana-gathering-june-2025/ https://blogs.perficient.com/2025/07/16/my-experience-at-the-salesforce-nagpur-ohana-gathering-june-2025/#respond Wed, 16 Jul 2025 10:28:22 +0000 https://blogs.perficient.com/?p=384096

Hello Trailblazers!

Last week, I had the amazing opportunity to attend the “Salesforce Nagpur Ohana Gathering June 2025.” This Meetup was packed with knowledge-sharing, networking, and inspiration. The event brought together passionate Salesforce professionals and featured insightful sessions from four expert speakers. Each session focused on a crucial aspect of the Salesforce ecosystem—from SOQL optimization to Financial Services Cloud.

In this blog post, I’ll be sharing my personal experiences, key takeaways, and insights into the exciting developments and inspiring moments that made this event unforgettable.

So, stay tuned for all the details—you won’t want to miss it!

Salesforce Nagpur Ohana Gathering June 2025:

The Salesforce Nagpur Ohana Gathering was a power-packed joint event hosted by the Salesforce Architect Group Nagpur and the Salesforce Developer Group Nagpur. This vibrant meetup brought together Trailblazers from across the region to learn, connect, and grow as a community.

The event featured four insightful and engaging sessions, each led by experienced speakers who shared practical knowledge and real-world applications across various Salesforce domains. From advanced SOQL techniques to the latest in Flows and Financial Services Cloud, the sessions catered to both developers and admins, offering something valuable for everyone.

Let’s dive into a quick recap of each session and explore the key takeaways that made this event truly unforgettable.

 

  1. SOQL Secrets: Staying Sharp within Salesforce Limits

    This session offered a deep dive into the art of writing efficient SOQL queries while staying within Salesforce’s governor limits. The speaker highlighted common pitfalls that can lead to performance issues, such as unselective queries and poor use of relationships. Real-world examples demonstrated how indexing, selective filters, and query planning can make a huge difference. Whether you’re a beginner or an experienced developer, this talk delivered practical tips to optimize your queries, improve system performance, and avoid hitting those dreaded limits.

Whatsapp Image 2025 07 07 At 12.22.45 Pm (2)

 

  1. Working With Large Data Volume

    This session focused on best practices for handling large data volumes (LDV) in Salesforce without compromising performance. The speaker shared insights on data modeling strategies, indexing, and using tools like skinny tables and Big Objects. Techniques such as asynchronous processing, batch Apex, and data archiving were discussed to manage and optimize large datasets effectively. The session served as a valuable guide for developers and admins looking to scale their orgs efficiently while maintaining speed and reliability.

 

  1. Latest Features and Updates in Salesforce Flows

    This session explored the newest enhancements in Salesforce Flows, showcasing how Flow is becoming the go-to automation tool across the platform. The speaker walked through recent updates like reactive components, HTTP callouts from Flow, and new debugging improvements. Real-world use cases illustrated how these features simplify complex business processes without the need for code. Whether you’re an admin or developer, this session highlighted why staying up-to-date with Flow capabilities is key to building smarter, more efficient automations.

Whatsapp Image 2025 07 07 At 12.22.16 Pm (1)

 

 

  1. Financial Services Cloud

    In this session, attendees got an insightful overview of Salesforce Financial Services Cloud (FSC) and how it transforms customer relationship management in industries like banking, insurance, and wealth management. The speaker showcased FSC’s industry-specific data model, features like Actionable Relationship Center, and powerful tools for client onboarding and financial goal tracking. With real-life examples, the session highlighted how FSC helps financial institutions deliver personalized, compliant, and scalable solutions tailored to client needs.

Whatsapp Image 2025 07 07 At 12.22.17 Pm (1)

All four sessions were highly informative, providing a wealth of knowledge and practical insights for everyone in attendance.

 

Quiz Competition, Swag Distribution & Group Photo Moments

After a series of knowledge-packed sessions, the meetup concluded with a lively and interactive quiz competition. Participants enthusiastically put their learnings to the test, answering questions based on the day’s topics. The atmosphere was filled with energy, laughter, and a healthy dose of competition. To celebrate their quick thinking and sharp memory, the top scorers were awarded exciting swag—adding a spark of joy and recognition to the experience.

As the day came to a close, all attendees gathered for a grand group photo, capturing the spirit of the SF Trailblazer Community. With big smiles and loud “CHEESE!” chants, the moment reflected the vibrant connections, shared passion, and collaborative spirit that define the Trailblazer ecosystem.

Here are some of the memorable highlights from the day, captured in photos—each frame telling a story of learning, laughter, and leadership.

Click to view slideshow.

Conclusion

The Trailblazer Community Meetup was not just a learning experience, but a reminder of the power of community and continuous growth in the SF ecosystem. The sessions provided practical insights and fresh perspectives that I’m excited to apply in my day-to-day work. Huge thanks to the organizers and speakers for delivering such value-packed content. Looking forward to the next one!

Happy Reading!!

]]>
https://blogs.perficient.com/2025/07/16/my-experience-at-the-salesforce-nagpur-ohana-gathering-june-2025/feed/ 0 384096
How to Check the Number of Dynamic Dashboards in Salesforce? https://blogs.perficient.com/2025/03/28/how-to-check-the-number-of-dynamic-dashboards-in-salesforce/ https://blogs.perficient.com/2025/03/28/how-to-check-the-number-of-dynamic-dashboards-in-salesforce/#respond Fri, 28 Mar 2025 07:02:28 +0000 https://blogs.perficient.com/?p=379342

Hello Trailblazers!

Salesforce dashboards are powerful tools for data visualization and analysis. Dynamic dashboards, for example, provide real-time insights tailored to each user’s data visibility. Since an organization can only create a limited number of dynamic dashboards, it’s crucial to track and manage them efficiently.

This blog will explore various ways to check the number of dynamic dashboards in Salesforce.

So, let’s get started.

Before You Begin

In the previous part of the Salesforce Dashboards blog series, we explored what Salesforce dynamic dashboards are and how to create them. Before moving forward, I encourage you to read the previous blog in this series.

What is a Dynamic Dashboard?

A dynamic dashboard is a type of Salesforce dashboard that allows users to see data according to their own security settings rather than the dashboard creator’s settings. Unlike standard dashboards that run under a specific user’s permissions, dynamic dashboards adapt to the viewer’s access levels, making them highly useful for role-based data visibility.

Why is it Important to Track Dynamic Dashboards?

Salesforce imposes a limit on the number of dynamic dashboards per edition:

  • Enterprise Edition: Up to 5 dynamic dashboards.
  • Both Unlimited and Performance Editions can have up to 10 dynamic dashboards.
  • Developer Edition: Up to 3 dynamic dashboards.

Exceeding this limit may prevent the creation of new dynamic dashboards and impact reporting capabilities. Hence, tracking the number of existing dynamic dashboards is essential.

Methods to Check the Number of Dynamic Dashboards

1. Using Salesforce Reports

To create a report fetching Dynamic Dashboards, we must create a Custom Report Type first.

Steps to Check Dynamic Dashboards

  1. Go to Setup and search for Report Types in the Quick Find Box.
  2. Create a new Custom Report Type there and name it.
  3. Select “Dashboard” as the primary object for your custom report type, complete the other process, and save it.
  4. Click New Report.
  5. Select the custom report type that you created and click Start. Follow the image below for reference.
    Img1
  6. Go to the Filters and ensure that you select the “All Dashboards” option for a comprehensive view.
  7. Set the date range to All Time to capture all relevant data.
  8. Go to the Outline section, then Columns, and add the Dashboard Running User, Dashboard ID, etc, fields to the report for better visibility.
  9. Apply the following filter: Dashboard Running User = “Run as logged-in user, Let authorized users change running user” to identify dynamic dashboards.
    Now, your filter section should appear as shown below:Img2
  10. Save and run the report. The filtered results will display all Dynamic Dashboards to which you have access.

Img3

2. Using the Developer Console

In the Developer Console, you can query the metadata to find the number of dynamic dashboards using SOQL (Salesforce Object Query Language).

Steps

  1. Open Developer Console.
  2. Go to Query Editor.
  3. Enter the following SOQL query:
    SELECT Id, Title FROM Dashboard WHERE Type != 'SpecifiedUser'
  4. Click Execute.
  5. This will return Dynamic Dashboards not in private folders as shown below.Img4
  6. You can also use the following query:
    SELECT Id, Title FROM Dashboard USING SCOPE allPrivate WHERE Type != 'SpecifiedUser'
  7. This will return Dynamic Dashboards that are in private folders.

3. Using Workbench

Workbench is a powerful tool that allows you to query Salesforce metadata.

Steps

  1. Log in to Workbench (https://workbench.developerforce.com/).
  2. Select SOQL Query under Queries.
  3. Enter the query and click Execute.
  4. Click Execute.
  5. Review the list of dynamic dashboards.

4. Using Salesforce Setup

If you want a quick way to check dynamic dashboards without running reports or queries:

  1. Go to Setup.
  2. Search for Dashboards in the Quick Find box.
  3. Click Dashboards.
  4. Review the dashboards and check the Running User column. If it says “Run as Logged-in User or The Dashboard Viewer,” then it’s a dynamic dashboard.

Best Practices for Managing Dynamic Dashboard

  • Regularly Audit Dashboards: Review existing dynamic dashboards periodically to ensure they are necessary.
  • Optimize Usage: Use dynamic dashboards only when needed to avoid reaching the limit. I mentioned the limits of dynamic dashboards in the previous part of this blog post.
  • Use Standard Dashboards: If a standard dashboard can achieve the same outcome, it is preferred over a dynamic one.
  • Leverage Scheduled Reports: Instead of dynamic dashboards, use scheduled reports to send insights to users without consuming dashboard limits.

Conclusion

Tracking the number of dynamic dashboards in Salesforce is crucial to avoid hitting the platform limits. You can easily check and manage dynamic dashboards using methods like Salesforce reports, SOQL queries, Workbench, and Setup. Following best practices, you can optimize dashboard usage and ensure smooth reporting operations in your Salesforce org.

‘Happy Reading!

 “Positivity is like a ripple in water—one small act of optimism can create waves of change. Embrace each challenge with a smile, for even the darkest clouds make way for the brightest sunshine…”

 

Related Posts:

  1. Subscribe to Dashboards in Lightning Experience
  2. Subscribe to Dashboards by Group or Role

You Can Also Read:

  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

 

 

]]>
https://blogs.perficient.com/2025/03/28/how-to-check-the-number-of-dynamic-dashboards-in-salesforce/feed/ 0 379342
How to Subscribe to Salesforce Dashboards? https://blogs.perficient.com/2025/01/27/how-to-subscribe-to-salesforce-dashboards/ https://blogs.perficient.com/2025/01/27/how-to-subscribe-to-salesforce-dashboards/#respond Mon, 27 Jan 2025 07:10:13 +0000 https://blogs.perficient.com/?p=376037

Hello Trailblazers!

Salesforce Dashboards are powerful tools that allow users to visualize and analyze data at a glance. To stay updated on key metrics without manually checking dashboards, Salesforce provides a subscription feature. Subscribing to dashboards ensures that you and your team receive timely updates via email, helping you stay informed and make data-driven decisions.

In this blog, we’ll learn how to subscribe to Salesforce Dashboards.

Before you Begin:

In the earlier sections of this Salesforce Dashboards series, we explored what Salesforce Dashboards are, the step-by-step process to create them, and an in-depth look at Dynamic Dashboards in Salesforce. So to ensure a thorough understanding and gain the maximum benefit from this series, I highly recommend reviewing those parts before moving forward.

Benefits of Subscribing to Salesforce Dashboards

  1. Automated Updates: Receive dashboard data directly in your email without manual intervention.
  2. Timely Insights: Get updates on key metrics at regular intervals.
  3. Collaboration: Share insights with team members effortlessly by including them in subscriptions.
  4. Customization: Choose specific schedules and recipients for dashboard updates.

Prerequisites for Subscribing to Dashboards

  1. Permissions: Ensure you have the “Subscribe to Dashboards” permission enabled. Check with your Salesforce Administrator if you are unsure.
  2. Access to Dashboard: You must have view access to the dashboard you want to subscribe to.
  3. Email Configuration: Your Salesforce org must have email delivery settings configured.

At the end of this blog, I have demonstrated how you can receive automated email updates for Salesforce Dashboards by subscribing to them. So stay tuned for all the details!

Steps to Subscribe to a Salesforce Dashboard

Step 1: Navigate to the Dashboard

  1. Go to the Dashboards tab in Salesforce.
  2. Locate the dashboard you want to subscribe to using the search bar or browsing the folders.
  3. Click to open the desired dashboard as illustrated below.

Img1

Step 2: Click on the Subscribe Button

  1. Once the dashboard is open, locate the Subscribe button at the top right corner of the screen.
  2. Click on the Subscribe button to begin the subscription process.

Img2

 

Step 3: Configure Subscription Settings

  1. Set Frequency: Choose how often you want to receive the dashboard updates. Options include:
    • Daily
    • Weekly
    • Monthly
  2. Select Time: Specify the time of day as shown below when the dashboard email should be sent.
  3. Choose Conditions (Optional):
    • Add filters or conditions for triggering the subscription.
    • For example, “Send only if revenue is below $50,000.”

Img3

 

Step 4: Add Recipients

  1. Include Yourself: By default, you will be subscribed to the dashboard.
  2. Add Team Members: Add colleagues or other Salesforce users who should receive the email. Enter their names or select them from the user list.

Note: Only users with access to the dashboard can be added as recipients.

Img4

Step 5: Save the Subscription

  1. Review your subscription settings to ensure everything is correct.
  2. Click Save to activate the subscription.

So you can see your subscription in the Subscribed column as shown below.
Img5

So in this way, you can subscribe to the Salesforce Dashboards.

Note: If you’re interested in learning “how to subscribe to Salesforce Reports”, please explore the detailed blog by clicking on the provided link.

Managing Dashboard Subscriptions

  1. View Existing Subscriptions:
    • Open the dashboard and click on the Subscribe button.
    • You can see and manage your existing subscriptions.
  2. Edit Subscription Settings:
    • Adjust frequency, time, or recipients as needed.
    • Save changes to update the subscription.
  3. Unsubscribe:
    • If you no longer wish to receive dashboard emails, click on Unsubscribe to stop the updates.

Img6

Best Practices for Dashboard Subscriptions

  1. Limit Recipients: Only include essential stakeholders to avoid overwhelming users with emails.
  2. Optimize Frequency: Choose a schedule that aligns with the dashboard’s relevance and data update frequency.
  3. Use Filters Wisely: Apply conditions to ensure emails are sent only when specific criteria are met.
  4. Test Email Delivery: Verify that emails are being sent and received correctly.

Result – How do you receive emails for Salesforce Dashboards?

Here, I’m showing the result of receiving the Salesforce Dashboard after subscribing to it.

Click to view slideshow.

Troubleshooting Subscription Issues

  1. Not Receiving Emails:
    • Check your spam or junk folder.
    • Confirm that your email address is correct in Salesforce.
    • Verify that your organization’s email server is not blocking Salesforce emails.
  2. Permission Issues:
    • Ensure you have the necessary permissions to subscribe to dashboards.
    • Contact your Salesforce Administrator for assistance.
  3. Dashboard Access Issues:
    • Confirm that you have access to the dashboard and its data.

 

Conclusion

Subscribing to Salesforce Dashboards is a simple yet effective way to stay informed about your business metrics. So by following the steps outlined in this guide, you can automate dashboard updates, share insights with your team, and make timely decisions.

Happy Reading!

 “Self-learning is the art of unlocking your potential, where curiosity becomes your guide and perseverance your greatest teacher.”

 

Related Posts:

  1. Subscribe to Dashboards in Lightning Experience
  2. Subscribe to Dashboards by Group or Role

You Can Also Read:

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

 

]]>
https://blogs.perficient.com/2025/01/27/how-to-subscribe-to-salesforce-dashboards/feed/ 0 376037
How to Create a Bucket Column for the Picklist Type Field in Salesforce Report https://blogs.perficient.com/2025/01/23/how-to-create-a-bucket-column-for-the-picklist-type-field-in-salesforce-report/ https://blogs.perficient.com/2025/01/23/how-to-create-a-bucket-column-for-the-picklist-type-field-in-salesforce-report/#comments Thu, 23 Jan 2025 10:31:55 +0000 https://blogs.perficient.com/?p=375095

Hello Trailblazers!

Salesforce provides powerful reporting tools to analyze and visualize data effectively. Among these tools, the Bucket Field stands out as a feature that enables categorization of data directly within reports.

In this blog post, we’ll focus on creating a Bucket Column specifically for Picklist type fields in Salesforce Reports, offering a step-by-step guide to help users categorize data efficiently.

Before you Begin:

In the previous part of this blog we’ve explored “What is Bucket Field in Salesforce?”, ways to create it and many more. Before proceeding I highly recommend revisiting the earlier section to gain a comprehensive understanding of the fundamentals related to it.

What is a Bucket Column in Salesforce?

A Bucket Column/Field is a feature that allows users to group values of a specific field into categories (buckets) without altering the underlying Salesforce object. Here in this blog, we’re particularly using it for picklist fields, where predefined values can be grouped into broader categories to simplify analysis.

For example:

  • Group opportunity stages into “Early,” “Mid,” and “Closed” categories.
  • Categorize lead sources into “Digital,” “Offline,” and “Referral” groups.

Benefits of Bucket Columns for Picklist Fields

  1. Ease of Use: Group picklist values dynamically without modifying the schema.
  2. Enhanced Insights: Aggregate data into meaningful categories for better analysis.
  3. Time-Saving: No need for custom fields or formula fields to categorize data.
  4. Improved Collaboration: Share reports with categorized data easily across teams.

Note: If you’re interested in learning “How to Share Reports or Report Folders in Salesforce,” you can explore the detailed guide provided in this link. It offers step-by-step instructions to help you seamlessly manage report sharing and collaborate effectively.

Steps to Create a Bucket Column for Picklist Fields

Step 1: Open or Create a Report

  1. Navigate to the Reports tab in Salesforce.
  2. Click New Report or open an existing report that contains the picklist field you want to bucket.
  3. Select the relevant report type (e.g., Opportunities, Leads).
  4. Here we are selecting standard “Leads” report type as shown in the figure below.

Img1

Note: If you are interested in learning “What is a Custom Report Type in Salesforce?” and learn how to create one, I recommend you to explore the detailed guide available through the provided link.

Step 2: Add a Bucket Column

Once you select the report type, it will open the Report Builder.

  1. Navigate to the Outline section in the left-hand panel.
  2. Locate the Columns section and click the dropdown menu.
  3. From the dropdown options, select Add Bucket Column to proceed, as shown in the figure below.

Img2

Note: We’ve previously explored an alternative method for creating a bucket column. If you’d like to learn that approach, kindly refer to the earlier part of this blog post. The relevant link is provided in the “Before You Begin” section and is also included at the end for your convenience.

Step 3: Configure the Bucket Column

  1. Name Your Bucket Column: Enter a descriptive name, such as “Lead Source Group.”
  2. Select the Source Field: Choose the desired picklist field that you want to use for creating a bucket column. (e.g., Lead Source).
  3. Define Buckets:
    • Click Add Bucket to create a new category.
    • Enter a name for the bucket (e.g., “Digital Sources“).
    • Select picklist values to include in this bucket (e.g., “Website,”).
    • Click on “Move to” and choose “Digital Sources” from the options, as illustrated in the figure below.Img3
  4. Repeat for Other Buckets: Create additional buckets for other categories (e.g., “Offline Sources,” “Referral Sources”). It should be like this:Img4
  5. Click Apply to save your configuration.

Step 4: Use the Bucket Column in the Report

  1. Drag the newly created bucket column into the report canvas anywhere you want.
  2. Use it for grouping, filtering, or summarizing data as needed.
  3. If you summarize the report by newly created Bucket Column/Field, it will look like this:

Img5

 

Note: If you would like to learn more about “How to create Summary Reports in Salesforce?”, then please follow the provided link.

Step 5: Save and Run the Report

  1. Save the report by clicking Save
  2. Provide a meaningful name, description, and folder location for the report.
  3. Click Save & Run to visualize your categorized data.

Best Practices for Bucket Columns

  1. Keep Categories Meaningful: Ensure that bucket names are intuitive and easy to understand.
  2. Test with Small Datasets: Verify the categorization before applying it to larger datasets.
  3. Document Your Configuration: Provide descriptions for each bucket to clarify their purpose.
  4. Limit Buckets: Avoid creating too many buckets to maintain report clarity and focus.

 

Conclusion

Bucket Columns in Salesforce Reports are a simple yet powerful way to organize and analyze data dynamically. For Picklist fields, they provide a flexible solution to group values into meaningful categories without altering the underlying schema.

By following the steps in this guide, you can quickly set up bucket columns and unlock deeper insights into your Salesforce data.

Happy Reading!

 “A disciplined mind leads to a focused life; when you control your actions, you control your destiny.”

 

Related Posts:

  1. Bucket Field in Salesforce
  2. Bucket Field Limitations

You Can Also Read:

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

 

]]>
https://blogs.perficient.com/2025/01/23/how-to-create-a-bucket-column-for-the-picklist-type-field-in-salesforce-report/feed/ 1 375095
Methods for identifying desktop, mobile, or tablet device in the LWC component https://blogs.perficient.com/2025/01/17/methods-for-identifying-desktop-mobile-or-tablet-device-in-the-lwc-component/ https://blogs.perficient.com/2025/01/17/methods-for-identifying-desktop-mobile-or-tablet-device-in-the-lwc-component/#respond Fri, 17 Jan 2025 08:04:20 +0000 https://blogs.perficient.com/?p=375405

In order to write device-specific code in Salesforce LWC (Lightning web components), we will explore different methods of detecting a device in this blog. The following methods can be used in Lightning Web Components (LWC) to identify a device or distinguish between a desktop, tablet, or mobile device:

Pexels Pixabay 4158

1. Using Standard web APIs navigator.userAgent

In Lightning Web Components (LWC), device detection is implemented using standard web APIs like navigator.userAgent, allowing developers to identify device types (e.g., phone, tablet, desktop) and operating systems by analyzing the user agent string. This approach provides flexibility and supports modern web standards.

Example:

import { LightningElement } from 'lwc';

export default class DetectDevice extends LightningElement {
    isPhone = false;
    isTablet = false;
    isAndroid = false;
    formFactor = 'Unknown';

    connectedCallback() {
        this.detectDevice();
    }

    detectDevice() {
        const userAgent = navigator.userAgent || navigator.vendor || window.opera;
        // Detect Android
        this.isAndroid = /android/i.test(userAgent);
        // Detect iOS
        const isIOS = /iPad|iPhone|iPod/.test(userAgent) && !window.MSStream;
        // Detect Tablets
        const isTablet = /Tablet|iPad/.test(userAgent);
        // Detect Phones
        const isPhone = /Mobile|iPhone|Android/.test(userAgent) && !isTablet;
        // Assign properties
        this.isPhone = isPhone;
        this.isTablet = isTablet || isIOS;
        this.formFactor = isPhone ? 'Phone' : isTablet ? 'Tablet' : 'Desktop';
    }
}

2. Use CSS Media Queries

In both Lightning Web Components (LWC) and Aura Components, detecting the device form factor using CSS Media Queries is a robust and declarative approach. Media queries enable developers to define styles that apply conditionally based on the device’s screen size, resolution, orientation, or other media features, without relying on JavaScript or Salesforce-specific utilities like $Browser. We can use CSS media queries to detect the device type or screen size and apply styles or classes accordingly.

Detecting Devices Using CSS Media Queries

You can define breakpoints to target specific devices like phones, tablets, or desktops. For example:

  • Phones: Devices with a screen width up to 767px.
  • Tablets: Devices with a screen width between 768pixel and 1024pixel.
  • Desktops: Devices with a screen width above 1024px.

For Example

  • HTML Template:
html
<template>
  <div class={deviceClass}>
    Content here
  </div>
</template>
  • CSS:
@media (max-width: 768px) {
  .mobile {
    display: block;
  }
}
@media (min-width: 769px) {
  .desktop {
    display: block;
  }
}
  • JavaScript:
import { LightningElement } from 'lwc';

export default class DetectDeviceLwc extends LightningElement {
  get deviceClass() {
    return window.innerWidth <= 768 ? 'mobile' : 'desktop';
  }
}

Example: 2

In the .css file of the LWC component

/* For Phones */

@media screen and (max-width: 767px) {
    .example {
        font-size: 14px;
        color: blue;
    }
}

/* For Tablets */

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .example {
        font-size: 16px;
        color: green;
    }
}

/*For Desktops */

@media screen and (min-width: 1025px) {
    .example {
        font-size: 18px;
        color: black;
    }
}

3. Check Screen Size with window.innerWidth or window.matchMedia

We can dynamically check screen width or use the matchMedia API to determine the device type.

window.innerWidth: Simpler and more straightforward, but can be less performant for frequent resize events.

window.matchMedia: More powerful and efficient, especially when dealing with complex media queries or when you only need to respond to specific media query changes.

Example:

import { LightningElement } from 'lwc';

export default class DetectDeviceLwc extends LightningElement {
  isMobile = false;

  connectedCallback() {
    this.checkDevice();
    window.addEventListener('resize', this.checkDevice.bind(this));
  }

  disconnectedCallback() {
    window.removeEventListener('resize', this.checkDevice.bind(this));
  }

  checkDevice() {
    this.isMobile = window.innerWidth <= 768; // Define your breakpoint here
  }
}
function checkScreenWidth() {
  const smallScreenQuery = window.matchMedia("(max-width: 767px)");
  const mediumScreenQuery = window.matchMedia("(min-width: 768px) and (max-width: 1023px)");

  if (smallScreenQuery.matches) {
    console.log("Small screen");
  } else if (mediumScreenQuery.matches) {
    console.log("Medium screen");
  } else {
    console.log("Large screen");
  }
}

// Call the function on page load
checkScreenWidth();

// Add listeners for media query changes
smallScreenQuery.addEventListener("change", checkScreenWidth);
mediumScreenQuery.addEventListener("change", checkScreenWidth);

4. Leverage Platform-Specific Styles in Salesforce

If your application runs in Salesforce Mobile App, you can use specific SLDS classes for responsiveness.

  • For example, use the slds-size_1-of-1, slds-medium-size_1-of-2, or slds-large-size_1-of-3 classes to control layout depending on the screen size.

In Lightning Web Components (LWC), leveraging platform-specific styles in Salesforce is an effective approach to detect and adapt to devices, ensuring a seamless user experience. Salesforce provides a unified and responsive design system through the Lightning Design System (SLDS), which includes platform-specific utility classes and design tokens. These tools allow developers to tailor component styling and behavior for different devices and screen sizes without relying heavily on custom CSS or JavaScript.

5. Lightning Platform Features

Use Salesforce’s User-Agent and Platform context for mobile/desktop detection:

  • In Visualforce or Aura, we can use $UserContext.uiTheme or $UserContext.uiThemeDisplayed.
  • In LWC, this can be combined with server-side logic or custom platform detection flags passed from Apex or configuration.

Custom Apex Logic

If needed, pass device information from Apex to the LWC by using a custom setting or logic to detect if the user is accessing Salesforce from a mobile app or desktop browser.

UserInfo.getUiThemeDisplayed(); // Returns ‘Theme4d’ for Desktop, ‘Theme4t’ for Mobile

@AuraEnabled
public static Boolean isMobile() {     
return UserInfo.getUiThemeDisplayed() == 'Theme4t';
}

You can then consume this information in your LWC via an imperative Apex call.

6. Salesforce Mobile SDK (If Applicable)

For apps integrated with the Salesforce Mobile SDK, you can directly use the SDK’s methods to detect the environment and pass the device type to your LWC.

Conclusion:

By combining one or more of these methods allows for more reliable device detection, enabling you to implement device-specific code tailored to your application. These approaches are particularly valuable for ensuring your LWC components accurately identify and respond to the appropriate device.

 

References:

Apex Reference Guide

View Devices with mobile device tracking 

You Can Also Read:

  1. A Complete Guide to Navigation Service in Lightning Web Components: Part 1
  2. A Complete Guide to Navigation Service in Lightning Web Components: Part 2
]]>
https://blogs.perficient.com/2025/01/17/methods-for-identifying-desktop-mobile-or-tablet-device-in-the-lwc-component/feed/ 0 375405
Bucket Field in Salesforce: Simplify Your Data Categorization https://blogs.perficient.com/2024/12/23/bucket-field-in-salesforce-simplify-your-data-categorization/ https://blogs.perficient.com/2024/12/23/bucket-field-in-salesforce-simplify-your-data-categorization/#respond Mon, 23 Dec 2024 17:32:03 +0000 https://blogs.perficient.com/?p=373966

Hello Trailblazers!

Salesforce Reports are a powerful way to analyze data, and one of their most useful features is the Bucket Field. This tool allows you to group report data into categories without creating custom fields or formula fields in your Salesforce objects. Whether you’re working with large datasets or need a quick way to analyze trends, bucket field can save time and streamline your reporting.

In this blog, we’ll learn what is Bucket field in Salesforce is and how to create it, along with its benefits and limitations.

So let’s get started…

Before you Begin:

In the earlier parts of this Salesforce Reports blog series, we explored the fundamentals of Salesforce Reports, including their types, how to create them, and several key aspects surrounding them. I highly recommend reviewing those previous posts using the provided links for a better understanding before diving into this section.

What is a Bucket Field in Salesforce?

A Bucket Field is a feature in Salesforce Reports that lets you group report records based on criteria you define. Instead of modifying your Salesforce schema to create custom fields, you can categorize records dynamically within the report.

For example:

  • Group revenue/Profit into “High,” “Medium,” and “Low” categories.
  • Classify accounts based on annual revenue ranges.
  • Organize leads by age groups.

Benefits of Using Bucket Fields

  1. No Schema Changes: Avoid altering the underlying Salesforce object structure.
  2. Dynamic Categorization: Adjust categories directly in the report as needed.
  3. Simplified Analysis: Focus on trends without extensive pre-processing.
  4. Flexibility: Combine values from multiple fields into a single category.

Limitations of Bucket Fields

  1. Static Configuration: Categories are hardcoded into the report and don’t update dynamically.
  2. Field Limits: A report can have up to 5 bucket fields, and each bucket field can contain up to 20 buckets.
  3. Availability: Bucket fields are only available in tabular, summary, and matrix reports.

Note: To explore more about the limitations of Bucket Fields, please refer to the link provided under the “Related Posts” section.

Steps to Create a Bucket Field in Salesforce Reports

Follow these steps to create and use a Bucket Field in your Salesforce report:

Step 1: Create or Open a Report

  1. Navigate to the Reports tab in Salesforce.
  2. Click on New Report or open an existing report.
  3. Select the report type (e.g., Accounts, Opportunities).
  4. Here we are selecting the “Opportunities” report type as shown in the figure below.

Img1

Step 2: Add a Bucket Field

There are two methods to add Bucket Fields/Column into the report.

Method 1 –

  1. In the report builder, click Outline in the left-hand panel and go to the Columns.
  2. Click on the dropdown menu next to Columns.
  3. Select Add Bucket Column as shown in the figure below.Img2
  4. One more step – Once you click, a pop-up will open, there you need to select ‘Field’ for the bucket column.

Method 2-

  1. Open the Report Builder and navigate to the field you want to create a bucket column for. In this example, we’ll create a bucket column for the “Amount” field.
  2. Click the dropdown menu located next to the “Amount” field.
  3. From the displayed options, select “Bucket this Column” as illustrated in the figure below.

Img3

These are the 2 methods to add bucket fields into the report.

So, we will move forward with the Method 2.

Step 3: Configure the Bucket Field

Once you select the ‘Bucket this Column’ as illustrated above, a popup will open to the edit bucket column.

  1. Name Your Bucket Field: Enter a descriptive name (e.g., “Profit Category”).
  2. Select a Source Field: Choose the field you want to bucket (e.g., Amount). (It will be auto-selected if you go with Method 2)
  3. Define Bucket Criteria:
    • Enter a name for the bucket (e.g., “Low Profit”).
    • Set Values/Ranges for each Bucket.
    • Click Add to create new buckets like Medium Profit, High Profit, etc. by defining their respective criteria of Amount.Img4
  4. Click Apply to save the bucket field configuration.

Step 4: Use the Bucket Field in Your Report

After creating the bucket column, Salesforce automatically adds it to your report. This new column functions like a formula, dynamically applying the defined criteria to each row of your report for streamlined data grouping and analysis.

  1. Drag and drop the newly created bucket field anywhere as required into the report canvas.Img5
  2. Group, filter, or summarize data using the bucket field as needed.

To group your report data by Bucket field, follow the below steps:

  1. Click on the dropdown menu next to the recently created bucket field – Profit Category.
  2. Choose the option “Group Rows by this Field” from the menu, as demonstrated in the image below.Img6
  3. This action will summarize the report data based on the Bucket fields/column, and the resulting report will appear as shown below.

Img7

 

Step 5: Save and Run the Report

  1. Save the report by clicking Save & Run.
  2. Provide a name, description, and folder location for the report.
  3. Click Save to view your categorized data.

Note: The bucket options available in the Edit Bucket Column menu vary based on the data type of the column you’re working with. Salesforce allows you to bucket three data types: numeric, picklist, and text, providing flexibility to categorize your data effectively.

Best Practices for Bucket Fields

  1. Plan Categories Thoughtfully: Use meaningful names and criteria for buckets to ensure clarity.
  2. Test with Sample Data: Verify that records are grouped correctly before finalizing the report.
  3. Keep It Simple: Avoid overloading reports with too many bucket fields to maintain readability.
  4. Document Configurations: Include descriptions for bucket fields to help collaborators understand the logic.

Use Cases for Bucket Fields

  1. Sales Performance: Categorize opportunities by deal size.
  2. Customer Segmentation: Group accounts by revenue tiers or industry types.
  3. Lead Analysis: Classify leads based on lead source or age.
  4. Trend Analysis: Break down data into time-based buckets for insights into seasonal patterns.

Conclusion

Bucket Fields in Salesforce Reports are an invaluable tool for categorizing data dynamically. They empower users to create flexible and insightful reports without making changes to Salesforce objects. By following the steps outlined in this blog, you can easily implement bucket fields in your reports and uncover actionable insights that drive better decision-making.

Happy Reading!

 “Positive affirmations are like seeds planted in the mind; with consistency and care, they grow into a garden of confidence, resilience, and self-belief.”

 

Related Posts:

  1. Bucket Field in Salesforce
  2. Bucket Field Limitations

You Can Also Read:

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

 

]]>
https://blogs.perficient.com/2024/12/23/bucket-field-in-salesforce-simplify-your-data-categorization/feed/ 0 373966
Schema Builder in Salesforce: A Comprehensive Guide https://blogs.perficient.com/2024/12/19/schema-builder-in-salesforce-a-comprehensive-guide/ https://blogs.perficient.com/2024/12/19/schema-builder-in-salesforce-a-comprehensive-guide/#respond Thu, 19 Dec 2024 07:50:23 +0000 https://blogs.perficient.com/?p=373646

Hello Trailblazers!

Salesforce Schema Builder is a robust tool that provides a visual representation of your data model. It allows administrators and developers to view, design, and modify objects, fields, and relationships in Salesforce effortlessly. Whether you’re a seasoned Salesforce expert or a beginner, Schema Builder can simplify your work and enhance your understanding of the Salesforce data architecture.

What is Schema Builder?

Schema Builder is a dynamic tool within Salesforce that visually represents objects, fields, and their relationships. Unlike the traditional method of navigating through object manager tabs, Schema Builder provides a drag-and-drop interface for creating and editing objects and fields directly.

Key Features of Schema Builder

  1. Interactive Visualization: View all standard and custom objects along with their relationships in a single diagram.
  2. Drag-and-Drop Interface: Create new objects, fields, and relationships without writing any code.
  3. Field Details: Easily access field-level information such as data type and API name.
  4. Real-Time Updates: The changes made in Schema Builders are reflected immediately in the Salesforce org.
  5. Customizable View: Filter objects and relationships to focus on specific areas of your schema.

Benefits of Using Schema Builder

  1. Time-Saving: Simplifies the process of designing and modifying your data model.
  2. Improved Collaboration: Provides a clear visual representation that can be shared with stakeholders.
  3. Reduced Errors: Ensures accuracy in creating fields and relationships by providing instant feedback.
  4. Enhanced Understanding: Helps new team members quickly understand the data model.

How to Access Schema Builder

Follow these steps to access Schema_Builder in Salesforce:

  1. Log in to your Salesforce org.
  2. To access Setup, click the gear symbol in the top-right corner.
  3. In the Quick Find box, type Schema Builder.
  4. Click on Schema Builder under Objects and Fields as shown in the figure below.

Img1

Once the Schema Builders interface opens, you can view and interact with your data model.

Start Using Schema Builder:

  1. In the left panel, click Clear All to remove any existing selections.
  2. Select the Account, Contact, and Opportunity
  3. Click on Auto-Layout to automatically arrange the components.

Once done, the layout will look similar to this:

Img2

Note: You can easily drag these objects around the canvas in Schema_Builder. While this doesn’t alter the objects or their relationships, it allows you to better visualize your data model in an organized and meaningful way.

Schema Builder is a powerful tool for showcasing your Salesforce customizations to colleagues or visualizing the seamless flow of data across your system, making it easier to understand and explain your data model.

Using Schema Builder to Create Objects, Fields, and Relationships

Step 1: Create a Custom Object

  1. Open Schema Builder.
  2. Click on Elements in the top-left corner.
  3. Drag the Object icon onto the canvas.
  4. Fill in the required details like Object Label, Record Name, Data type, etc.
  5. Save the object as shown below.

Img3

The object we created, will look like this.

Img4

And now you can start adding or creating the fields into the object.

Step 2: Add Fields to an Object

  1. Drag the Field icon onto an existing object in the canvas from the Elements.
  2. Choose the field type (e.g., Text, Number, Date).
  3. Specify field details like Field Label and Field Name.
  4. Save the field.

Img5

Step 3: Create Relationships Between Objects

  1. Drag the Lookup Relationship or Master-Detail Relationship icon onto an object.
  2. Specify the related object.
  3. Define the relationship settings, such as field names and sharing rules.
  4. Save the relationship.

Img6

So, the object will look like this after adding the fields.

Img7

So, in this way, you can create objects from Schema_Builder itself without going to Object Manager.

Best Practices for Using Schema Builder

  1. Plan Your Data Model: Outline your objects, fields, and relationships before starting.
  2. Use Filters: Focus on specific objects or relationships to reduce clutter.
  3. Collaborate with Teams: Share the Schema Builders view with your team to ensure alignment.
  4. Test Before Deployment: Validate the changes in a sandbox environment before applying them in production.

Limitations of Schema Builder

  1. Performance Issues: For orgs with large numbers of objects and fields, Schema_Builder can become slow.
  2. Limited Functionality: Advanced customizations, like triggers and validation rules, cannot be managed through Schema Builder.
  3. No Version Control: Changes made in Schema Builders are not version-controlled, so careful tracking is necessary.

Note: To dive deeper into the considerations for using Schema Builders, feel free to explore further by following this link.

Conclusion

Schema Builder in Salesforce is an invaluable tool for visualizing and managing your data model. By providing a user-friendly interface and real-time updates, it simplifies complex data architecture tasks and improves collaboration across teams.

Happy Reading!

 “Continuous learning is the bridge between where you are and where you aspire to be. Every step forward, no matter how small, brings growth and opens doors to new possibilities.”

 

Related Posts:

  1. Work with Schema_Builder
  2. Design your own Data Model with Schema_Builder

You Can Also Read:

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

 

]]>
https://blogs.perficient.com/2024/12/19/schema-builder-in-salesforce-a-comprehensive-guide/feed/ 0 373646
How to Add Filters to the Salesforce Dashboard https://blogs.perficient.com/2024/12/17/how-to-add-filters-to-the-salesforce-dashboard/ https://blogs.perficient.com/2024/12/17/how-to-add-filters-to-the-salesforce-dashboard/#respond Wed, 18 Dec 2024 02:56:00 +0000 https://blogs.perficient.com/?p=373499

Salesforce Dashboards are a powerful tool for visualizing and analyzing data, providing actionable insights for decision-making. Filters enhance these dashboards by allowing users to customize their view of the data, making dashboards dynamic and user-friendly.

In this blog, we will explore how to add filters to Salesforce Dashboards and highlight their benefits and best practices.

Before you Begin:

In the earlier parts of this blog series, we explored what Salesforce Dashboards are, their components, how to create them, as well as Dynamic Dashboards and the steps to set them up. Before diving into this section, I recommend reviewing those blogs for a better understanding.

What Are Dashboard Filters?

Dashboard filters in Salesforce enable users to adjust the data displayed on a dashboard without altering the underlying reports. By applying filters, users can view specific subsets of data, such as a particular region, product, or time frame, directly within the dashboard interface.

Benefits of Using Filters

  1. Enhanced User Experience

Filters make dashboards more interactive and user-centric by allowing users to focus on the data that matters to them.

  1. Improved Data Analysis

Filters enable deeper insights by providing multiple perspectives on the same set of data.

  1. Reduced Dashboard Clutter

Instead of creating multiple dashboards for different criteria, you can use filters to streamline the data presentation in one place.

Prerequisites for Adding Filters

Before adding filters to your Salesforce Dashboard, ensure the following:

  • You have “Manage Dashboards” and “Edit Dashboards” permissions.
  • The source reports used in the dashboard have fields available for filtering.

Note: If you’re interested in learning how to share Dashboards and Reports with Users, Roles, Partners, Internal Subordinates, and more, click on the link provided for a detailed guide.

Steps to Add Filters to a Salesforce Dashboard

Step 1: Open the Dashboard Editor

  1. Navigate to Dashboards in Salesforce.
  2. Select the dashboard you want to edit or create a new one.
  3. Click Edit to open the dashboard editor.

Step 2: Add a Filter

  1. Click the “+ Filter” button in the dashboard editor.
  2. In the Field dropdown, select the field you want to use for the filter. The available fields are determined by the source reports. So here, for example, we select the “Annual Revenue” field from Account.
  3. Once you select the field, specify the other filter options like Display Name: Annual Revenue.
  4. Click on the “Add Filter Value” button as shown in the figure below and start adding filter conditions.Img1
  5. Once you add the conditions, click apply to save the filter and repeat the same procedure for more conditions as shown above.
  6. After adding all the conditions, click Add as shown in the figure below.Img2
  7. Click Save.
  8. Click Done.

You can see the difference between a normal dashboard and a dashboard with filters in the below image.

Img3

Step 3: Save and Test the Dashboard

  1. Once all filters and components are configured, click Save.
  2. Test the dashboard by switching between different filter values to ensure the components update correctly.

The results are as shown below:

Img4

With these simple steps, you can apply filters to the dashboard to view specific data sets without the need to create a new dashboard or modify the associated reports.

In addition to the above example, you can also apply filters to fields like “Region” in an object. For instance, by setting up a “Region” filter with values such as “North,” “South,” “East,” and “West,” the dashboard data will dynamically adjust to display insights specific to the selected region.

So this feature enhances data visualization by allowing targeted analysis without creating separate dashboards.

Note: The limit for dashboards filter options (also known as filter values or filter criteria) differs from the limit on the total number of dashboard filters. Each dashboard can include up to 5 filters, and each filter can have up to 50 filter options. So this allows for a flexible and detailed data analysis experience, ensuring users can narrow down their results efficiently within these limits.

Best Practices for Using Dashboard Filters

  1. Choose Relevant Fields Select fields that align with your user’s needs and provide meaningful data segmentation.
  2. Use Descriptive Names Clearly label filters to help users understand their purpose.
  3. Limit the Number of Filters Avoid overwhelming users by keeping the number of filters manageable.
  4. Validate Data Compatibility Ensure that the fields you use for filters are consistent across the source reports.
  5. Test Thoroughly Always test the dashboards filters to confirm they work as expected and provide accurate results.

Common Use Cases for Dashboard Filters

  1. Geographic Analysis
    • Filter data by region or country to analyze location-specific trends.
  2. Product Performance
    • Apply filters for product categories or specific products to measure sales or performance.
  3. Time-Based Insights
    • Use filters for date ranges, such as months, quarters, or years, to study trends over time.

And many more examples.

Conclusion

Adding filters to Salesforce Dashboards is a simple yet impactful way to enhance data visualization and user experience. By allowing users to customize their view, filters make dashboards more dynamic and insightful. By following the above implementation steps and best practices, you can create powerful dashboards.

Happy Reading!

 “Manifestation begins with belief—what you focus your thoughts and energy on becomes the blueprint for your reality. Dream it, feel it, and work towards it with unwavering faith.”

 

Related Posts:

  1. Add a Dashboard Filter
  2. Filter a Dashboard

You Can Also Read:

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

 

 

]]>
https://blogs.perficient.com/2024/12/17/how-to-add-filters-to-the-salesforce-dashboard/feed/ 0 373499
Understanding Public Groups in Salesforce https://blogs.perficient.com/2024/12/11/understanding-public-groups-in-salesforce/ https://blogs.perficient.com/2024/12/11/understanding-public-groups-in-salesforce/#respond Wed, 11 Dec 2024 10:35:22 +0000 https://blogs.perficient.com/?p=373128

Hello Trailblazers!

Public Groups in Salesforce are a versatile and essential feature designed to streamline user management and data sharing across your organization. So these groups provide a convenient way to manage access permissions and ensure seamless collaboration among users, roles, and other groups.

In this blog, we will explore what Public Groups are, their benefits, how to create and manage them, and best practices for their use.

What Are Public Groups in Salesforce?

Public Groups are collections of users, roles, and other public groups that can be used to simplify sharing settings, folder access, and workflow approvals. These groups are defined at the organization level and can be used throughout Salesforce to manage access to records, dashboards, and reports more efficiently.

Public Groups can include:

  • Individual users.
  • Roles and subordinates.
  • Other public groups.

Benefits of Public Groups

  1. Streamlined Access Management

Public Groups allow administrators to manage access permissions for multiple users at once, reducing the complexity of assigning permissions individually.

  1. Improved Collaboration

By grouping users with shared responsibilities or objectives, Public Groups facilitate better collaboration on shared resources like records, dashboards, and reports.

  1. Efficient Workflow Approvals

Public Groups can be used in approval processes, ensuring that the right stakeholders are included in decision-making workflows.

  1. Consistency in Sharing Rules

Using Public Groups ensures that sharing rules remain consistent and easier to manage across your Salesforce instance.

Use Cases for Public Groups

  1. Folder Access Management
    • Grant access to report folders or dashboard folders for specific teams or departments.
  2. Record Sharing
    • Enable group-level access to records such as Accounts, Opportunities, or Cases.
  3. Approval Processes
  4. Chatter Collaboration
    • Use Public Groups to define access to specific Chatter groups and streamline communication.

Steps to Create a Public Group in Salesforce

1: Navigate to the Setup Page

  1. Log in to your Salesforce org.
  2. Click the Gear Icon and select Setup.

 2: Access the Public Groups Page

  1. In the Setup Quick Find box, type Public Groups.
  2. Click on Public Groups under Users as shown in the figure below.

Img1

3: Create a New Public Group

  1. Click New to create a new group.
  2. Fill in the following details:
    • Label: Enter a name for the group (e.g., “Marketing Team North”).
    • Group Name: This is auto-populated based on the label.
    • Description: Provide a brief description of the group’s purpose.
  3. Add members to the group by selecting:
    • Users.
    • Roles.
    • Roles and Subordinates.
    • Other Public Groups.

Img2

4: Save the Group

  1. So after adding the desired members, click Save.
  2. The new Public Group is now available for use in sharing settings, approval processes, and other functionalities.

Note: Learn more about the Approval Process in Salesforce and its benefits by following the link provided.

So, by following these simple steps, you can create public groups in Salesforce Org.

Managing Public Groups

  1. Editing Groups
  • Navigate to the Public Groups page in Setup.
  • Click Edit next to the group you want to modify as shown below.
  • Update the group name, description, or members as needed.

Img3

  1. Deleting Groups
  • Only delete a group if it’s no longer in use to avoid disrupting workflows or sharing settings.
  1. Using Groups in Sharing Rules
  • Public Groups can be included in sharing rules to grant access to records based on criteria or ownership.

Best Practices for Using Public Groups

  1. Define Clear Naming Conventions
    • Use descriptive and consistent names to make it easier to identify groups (e.g., “Marketing Team/Sales Team/Support Team”).
  2. Regularly Audit Group Membership
    • Periodically review group members to ensure they are up-to-date and relevant.
  3. Leverage Groups for Reporting and Dashboards
    • Use Public Groups to manage access to shared reports and dashboards effectively. So we have already discussed this. Please follow the links below mentioned in the ‘Related Posts’.

Conclusion

Public Groups in Salesforce are a powerful feature that can simplify access management, enhance collaboration, and streamline workflows. So by understanding how to create and manage these groups effectively, organizations can improve operational efficiency and ensure a more organized Salesforce environment.

Happy Reading !!

 “Every challenge is a hidden opportunity for growth—embrace it with optimism.”

 

Related Posts:

  1. Public Group in Salesforce
  2. Public Group Considerations

You Can Also Read:

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

 

]]>
https://blogs.perficient.com/2024/12/11/understanding-public-groups-in-salesforce/feed/ 0 373128
How to Share Salesforce Dashboard Folders: A Comprehensive Guide https://blogs.perficient.com/2024/12/10/how-to-share-salesforce-dashboard-folders-a-comprehensive-guide/ https://blogs.perficient.com/2024/12/10/how-to-share-salesforce-dashboard-folders-a-comprehensive-guide/#respond Tue, 10 Dec 2024 10:02:21 +0000 https://blogs.perficient.com/?p=372956

Hello Trailblazers!

Salesforce Dashboards provide a powerful way to visualize data, monitor performance, and make data-driven decisions. However, dashboards are only effective when the right people have access to them. Sharing Salesforce Dashboard folders allows teams to collaborate, share insights, and align strategies efficiently.

In this blog, we’ll explore the importance of sharing Salesforce dashboard folders and the required permissions and provide a step-by-step guide to sharing dashboard folders effectively.

Before You Begin:

In the earlier sections of this blog series, I provided an in-depth explanation of Salesforce Dashboards, the various types of dashboard components, and the concept of Dynamic Dashboards in Salesforce. For a comprehensive understanding, I recommend reviewing these sections first using the provided links before proceeding further.

Why Share Salesforce Dashboard Folders?

Collaboration and Alignment

Sharing dashboards fosters collaboration among teams, ensuring everyone has access to key metrics and performance indicators.

Transparency

Managers and team members can view the same data, reducing misunderstandings and improving communication.

Efficient Decision-Making

Shared dashboards provide real-time insights to all stakeholders, enabling quick and informed decisions.

Prerequisites for Sharing Dashboard Folders

Before sharing a dashboard folder, ensure the following:

  1. Folder Permissions: You must have “Manage” access to the dashboard folder you want to share.
  2. User Permissions: Users with appropriate access levels can only view or manage the shared folder based on the permissions assigned.
  3. Folders Enabled: Ensure the dashboards are stored in folders, a feature supported in Lightning Experience and Classic.

Steps to Share Salesforce Dashboard Folders:

Step 1: Navigate to the Dashboards Tab

  1. Click on the App Launcher and search for Dashboards.
  2. Open the Dashboards tab to access your saved dashboards.

Step 2: Locate the Dashboard Folder

  1. In the Dashboards tab, locate the folder that contains the dashboard you wish to share. (All Folders/Created by me)
  2. Click the Folder dropdown menu to view all folders.
  3. Select the folder you wish to share.

Step 3: Open Dashboard Folder Sharing Settings

  1. Click the Folder Options dropdown (represented by three dots or a gear icon) next to the folder name.
  2. Select Share from the dropdown menu. So, this action opens the dashboard folder-sharing settings.

Img1

Step 4: Add Users, Roles, or Groups

  1. So once you click share, a pop-up will appear.
  2. A pop-up window will appear, allowing you to add specific users, roles, public groups, or even entire roles and subordinates.
  3. Choose Users from the Share With dropdown menu.
  4. Use the “Names” field to search for the desired users.
  5. Choose the appropriate access level (View, Edit, or Manage) from the “Access” field.
  6. So, after selecting the users, click “Share” to complete the process, as illustrated in the figure below.

Img2

Note: To give multiple users different accesses, select the desired users and click on share. In the next step, we’ll see how to do this.

Step 5: Assign Access Levels

  1. Once you click on “Share,” the selected users, roles, or groups appear in the “Who Can Access” section.
  2. After adding a user, role, or group, assign an appropriate access level:
    • Viewer: Can view and run dashboards but cannot edit or share them.
    • Editor: Can view, edit, and run dashboards but cannot share the folder.
    • Manager: Can view, edit, run, and manage dashboards. Managers can also modify sharing settings.
  3. Click Done to save the user with the assigned access level, as shown in the figure below.

Img3

Step 6: Review and Save Dashboard Sharing Settings

  1. Finally, review the list of users, roles, and groups accessing the dashboard folder.
  2. Ensure the permissions align with organizational policies and data security standards.
  3. Click Done to save the changes.

Use Case: Sharing a Sales Dashboard with the Team

Imagine you have a Sales Performance dashboard that tracks key metrics like closed deals, pipeline value, and win rates. But You want to share this dashboard with your sales team and managers:

  1. Create a public group named Sales Team in Salesforce Setup.
  2. Add all sales team members and managers to this group.
  3. Share the Sales Performance dashboard folder with the Sales Team group and assign Viewer access to members and Manager access to team leads.

Img4

 

This setup ensures that everyone on the sales team can access the dashboard, while team leads have additional privileges to edit or manage it.

Best Practices for Sharing Dashboard Folders

  1. Assign Permissions Based on Need
  • Use the principle of least privilege: assign only the permissions users need to perform their roles.
  • For example, give Viewer access to most users and Editor or Manager access to team leads or analysts.
  1. Use Public Groups for Efficiency
  • Instead of adding individual users, create Public Groups in Salesforce. So this approach simplifies folder management and ensures consistency.
  1. Maintain Data Security
  • Ensure sensitive data on dashboards is shared only with authorized personnel.
  • Use role-based sharing to restrict access to specific users based on their job functions.

Common Issues When Sharing Dashboard Folders

  1. Missing Manage Access

Ensure you have Manage Access to the folder before attempting to share it. So without it, you won’t see the sharing options.

  1. Permissions Mismatch

Users may still face access issues if the underlying report folders aren’t shared with the same permissions. So always ensure the report folder permissions align with the dashboard folder permissions.

Note: If you would like to learn how to share Lightning Report Folders in Salesforce, please follow the link mentioned above.

 

Conclusion

Sharing Salesforce dashboard folders is straightforward but essential to fostering collaboration and transparency across teams. By following the steps outlined in this blog, you can ensure that the right people have the right level of access to critical data, empowering them to make informed decisions.

Happy Reading!

 “Learning is a path, not a destination, and every step forward matters.”

 

Related Posts:

  1. Share a Lightning Dashboard Folder
  2. Embrace Folder Sharing in Reports and Dashboards

You Can Also Read:

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

 

]]>
https://blogs.perficient.com/2024/12/10/how-to-share-salesforce-dashboard-folders-a-comprehensive-guide/feed/ 0 372956
How to Share Lightning Report Folders in Salesforce: A Complete Guide https://blogs.perficient.com/2024/12/05/how-to-share-lightning-report-folders-in-salesforce-a-complete-guide/ https://blogs.perficient.com/2024/12/05/how-to-share-lightning-report-folders-in-salesforce-a-complete-guide/#respond Thu, 05 Dec 2024 06:54:55 +0000 https://blogs.perficient.com/?p=372843

Hello Trailblazers!

Sharing Lightning Report Folders in Salesforce is essential for team collaboration, ensuring that the right people can access critical reports for decision-making. Salesforce allows you to securely manage and share report folders with users, roles, and groups while maintaining control over their level of access.

In this blog, we’ll explore the importance of sharing report folders and prerequisites and provide a detailed step-by-step guide to sharing Lightning Report Folders in Salesforce.

Before You Begin

In the earlier part of this blog series, I discussed what Salesforce Reports are, the different types of reports available, and the steps to create them. I recommend reviewing those sections for a clearer understanding before proceeding further.

Why Share Lightning Report Folders?

  1. Collaboration Across Teams

Sharing report folders enables team members to access, view, and analyze the same data, fostering better collaboration and understanding.

  1. Improved Productivity

When reports are shared efficiently, stakeholders can quickly access the information they need without requesting it repeatedly.

  1. Transparency and Alignment

By sharing reports, you ensure that all team members are on the same page regarding metrics and performance indicators.

Prerequisites for Sharing Report Folders

Before sharing Lightning Report Folders, ensure the following:

  • Manage Access: You must have “Manage” access to the folder to share it with others.
  • Appropriate Permissions: Users must have Salesforce permissions to view or edit reports.
  • Enhanced Folder Sharing: This feature must be enabled in your Salesforce organization. Because it provides more granular control over folder sharing.

Access Levels for Lightning Report Folders

When sharing folders, you can assign the following access levels:

  1. Viewer: Can view and run reports but cannot make changes.
  2. Editor: Can view, run, and modify reports but cannot manage folder sharing.
  3. Manager: Has full access but includes the ability to manage sharing settings and delete reports.

Step-by-Step Guide to Share Lightning Report Folders

Step 1: Open the Reports Tab

  1. In Salesforce, click on the App Launcher and search for Reports.
  2. Click the Reports tab to access all saved reports and folders.

Step 2: Locate the Report Folder

  1. On the left panel, locate the folder containing the reports you want to share. (All Folders/Created by Me)
  2. So click the folder name to open it.

Step 3: Open Folder Sharing Settings

  1. Click the More Options icon (three dots or gear icon) next to the folder name.
  2. Select Share from the dropdown menu. This action opens the folder-sharing interface, as shown in the figure below.

Img1

Step 4: Add Users, Roles, or Groups

  1. A pop-up will appear in the sharing interface, allowing you to search for specific users, roles, or public groups.
  2. Select “Users” from “Share With” dropdown.
  3. Search for users in the “Names” field.
  4. Once you selected the users, click on Share, as shown in the figure below.

Img2

Step 5: Assign Access Levels

  1. Once you add users or groups and click on “Share,” the information automatically appears in the “Who Can Access” section.
  2.  So here, assign the desired access level (Viewer, Editor, or Manager).

Img3

Step 6: Review and Save Report Sharing Settings

  1. So once done, review the list of users, roles, and groups with access to the folder.
  2. But make sure the permissions align with organizational policies.
  3. Click Done to save the changes.

Example Use Case: Sharing a Sales Report Folder

Imagine you have a folder named Sales Reports containing critical reports on pipeline value, closed deals, and team performance. So you want to share it with the Sales Team and Sales Managers:

  1. Create a public group in Salesforce called Sales Team.
  2. Add all team members and managers to this group.
  3. Share the Sales Reports folder with the Sales Team group. For collaboration, assign team members Viewer access and managers Editor access. Please refer to the below image.

Img4

Note: If you would like to learn more about Public Groups in Salesforce, please feel free to follow the link mentioned.

Best Practices for Sharing Report Folders

  1. Use Roles and Groups
    • Instead of adding individual users, use public groups or roles for efficient management.
  2. Follow the Principle of Least Privilege
    • Assign only the permissions necessary for users to perform their tasks.
  3. Secure Sensitive Data
    • Ensure sensitive reports are shared only with authorized users. To enforce restrictions, use role hierarchies and sharing settings.

Troubleshooting Common Issues

  1. Missing Folder Sharing Option
  • Ensure you have “Manage” access to the folder. Without it, you won’t be able to share it.
  1. Permission Denied Errors
  • Users must have the necessary permissions (like “Run Reports”) to access shared folders. Verify their user profiles or permission sets.
  1. Folder Not Visible to Users
  • Confirm that the users can access the folder and the underlying data. However, data visibility depends on Salesforce’s record-level security.

Conclusion

Sharing Lightning Report Folders in Salesforce is crucial to fostering collaboration, improving transparency, and ensuring the right stakeholders have access to vital data. Following the steps outlined in this guide, you can easily share report folders while maintaining control over who can view, edit, or manage them.

Happy Reading!

 “Success isn’t just about reaching your destination; it’s about embracing the journey, learning from every step, and growing stronger with each challenge.”

 

Related Posts:

  1. Share a Lightning Report Folder
  2. Share and Schedule Reports in Salesforce

You Can Also Read:

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

 

 

]]>
https://blogs.perficient.com/2024/12/05/how-to-share-lightning-report-folders-in-salesforce-a-complete-guide/feed/ 0 372843
How to Create Joined Reports in Salesforce: A Comprehensive Guide https://blogs.perficient.com/2024/12/03/how-to-create-joined-reports-in-salesforce-a-comprehensive-guide/ https://blogs.perficient.com/2024/12/03/how-to-create-joined-reports-in-salesforce-a-comprehensive-guide/#respond Tue, 03 Dec 2024 07:17:58 +0000 https://blogs.perficient.com/?p=372671

Hello Trailblazers!

Salesforce offers a range of reporting formats to help businesses understand and analyze their data. Among these, Joined Reports stand out as one of the most powerful reporting tools. They allow users to combine and compare data across multiple report types and objects within a single report.

In this blog, we’ll explore what joined reports are and when to use them, and provide a step-by-step guide to creating and customizing a joined report in Salesforce.

Before you Begin:

In the earlier sections of this blog, we discussed the steps to create Tabular, Summary, and Matrix Reports in Salesforce. If you haven’t already, please review those sections using the provided links to ensure a better understanding.

What is a Joined Report in Salesforce?

A Joined Report in Salesforce is a report format that lets users add multiple report types, known as blocks, within a single report view. Each block represents a separate report and can pull data from different objects. This report type is ideal for displaying data from multiple sources side-by-side, allowing you to analyze relationships between different datasets effectively.

Key Features of Joined Reports:

  • Multi-Object Data Comparison: Join data from multiple objects or related lists.
  • Block-Based Structure: Add up to five blocks, each with unique filters and groupings.
  • Customizable Filters: Apply filters to each block individually or use cross-block filters for global analysis.
  • Dashboards Compatibility: Add joined reports to dashboards for a more interactive data experience.

When to Use a Joined Report

Joined reports are especially useful when:

  • You want to compare data from multiple objects, like accounts and opportunities, in a single view.
  • You need to analyze related data from different perspectives, such as comparing closed-won opportunities by region.
  • You want to identify trends, such as comparing cases resolved with opportunities closed by product or account.

How to create a Joined Report in Salesforce

Let’s go through the steps to create a joined report that will allow you to analyze data from different objects in one view.

Step 1: Open the Reports Tab

  1. Go to the App Launcher and search Reports.
  2. Select Reports.
  3. Once in the Reports tab, click on New Report.

Step 2: Select the Report Type

  1. Choose the primary report type that will serve as the foundation for your joined report.
    For example, here I’m selecting Opportunities because I want to start by viewing opportunity data.
    Img1
  2. Click “Start Report” to open the report builder and start creating the report.

Step 3: Convert to a Joined Report Format

  1. In the report builder, locate the Format dropdown menu in the top-left corner as shown in the figure below.
  2. Select Joined Report from the format options. The report layout will change, allowing you to add blocks for each dataset you wish to compare.
  3. Click Apply.

Img2

This step makes your normal report a Joined Report.

Step 4: Add Additional Report Blocks

  1. Click Add Block as shown below to add another dataset to your report. Each block you add can pull data from a different report type.
  2. Choose the report type for each additional block.
  3. Here for example we are adding a Cases block to view cases alongside opportunities.
    Img3Img4
  4. Click on “Add Block” to include the desired report type in your report.
  5. Once you added the block to the report builder, your report will look as shown below.

Img5

Note: Repeat this step to add up to five blocks, if needed, to cover multiple report types.

Step 5: Configure Block-Specific Filters

Each block has its own set of filters, allowing for individualized data filtering.

  1. Click Filters within each block to adjust its dataset/records.
  2. Apply relevant filters to narrow down the data displayed in each block as per your requirements. For example, you could filter opportunities by a specific Stage and cases by Status as shown in the figure below.

Img6

Note: These filters operate independently, allowing you to create precise, context-specific views within each block.

Step 6: Add Columns to Each Block

Add fields to each block to customize the data displayed:

  1. In the Outline panel, click Add Column within each block to add the fields you want to display, such as Amount for opportunities or Case Status for cases.
  2. You can also use drag-and-drop functionality to arrange columns as needed.
  3. Customize each block’s columns to highlight the unique data points that matter most for your analysis.

Img7

Step 7: Group Data within Each Block

Grouping in the Salesforce Reports makes the reports structured and easy to summarize.

  1. Go to the Outline Panel: In the Group Block section, type Account Name and select it to create a grouping.
  2. Group Across Blocks: This action will group records across multiple blocks, such as Opportunity and Case blocks.
  3. As shown in the image above in Step 6, Account Name serves as a common field for both blocks, enabling seamless alignment of related Opportunities and Cases for each Account.

Img8

So joined reports help to scan the data faster across the blocks.

Step 8: Add Summaries to Each Block

Summaries allow you to calculate aggregate metrics, such as sums or averages.

  1. Click on a numeric column, such as Amount, within each block and choose a summary function (e.g., Sum, Average, Min, Max).
  2. Summaries will display totals or averages at the bottom of each grouping level as shown in the figure below.
  3. These summaries can provide useful insights into total sales, case resolution counts, or other key metrics across the blocks. Please refer to the below image.

Img9

Img10

Step 9: Preview and Fine-Tune the Report

Click Run to preview your joined report and ensure it meets your analysis needs. At this stage, review the data, groupings, and summaries to make sure the report layout is aligned with your goals.

Step 10: Add a Chart (Optional)

Charts can enhance the visual impact of your joined report by summarizing data visually:

  1. Click Add Chart at the top of the report builder.
  2. Click “gear icon” – Chart Properties.
  3. Select the chart type (e.g., bar, pie) that best matches your data. Here we are selecting “Bar Chart
  4. Configure the chart options to reflect the desired visuals for the report.
  5. Click Save.

Img11

Step 11: Save and Share the Report

When your report is ready, save it for easy access and sharing.

  1. Click Save & Run to save the report.
  2. Name your report and add a description if needed.
  3. Choose a folder to save it in, selecting either a public or private folder based on access needs.

Img12

Example Use Cases for Joined Reports

Here are some common scenarios where joined reports can be especially helpful:

  1. Sales Performance by Region and Product: Compare sales opportunities across different regions and products.
  2. Customer Support Analysis: View open cases, resolved cases, and case priority for each account and more.

Benefits of Joined Reports

  • Holistic Data Analysis: View and analyze data across multiple objects in one report.
  • Flexible Filtering: Apply filters and cross-block filters for precise data views.
  • Multi-Dimensional Summaries: Summarize data independently within each block for powerful insights.

Limitations of Joined Reports

  • Report Limits: Joined reports support up to five blocks, which may be restrictive for larger datasets.
  • Performance: Loading times may be slower for joined reports containing large datasets.
  • Formatting Complexity: Joined reports are more complex to set up and may require advanced Salesforce reporting skills.

Conclusion

Joined reports in Salesforce offer a unique and powerful way to combine data from multiple sources, enabling users to create detailed, comparative insights within a single report. By using the blocks we studied above, you can break down information across various report types and display it side by side for enhanced data analysis.

With this step-by-step guide, you can create joined reports that provide multi-dimensional insights for the report’s data.

Happy Reading !!

 “True growth comes not from what you achieve, but from the challenges you overcome and the lessons you carry forward.”

 

Related Posts:

  1. Create a Joined Report
  2. Combine Different Types of Information in a Joined Report

You Can Also Read:

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

 

]]>
https://blogs.perficient.com/2024/12/03/how-to-create-joined-reports-in-salesforce-a-comprehensive-guide/feed/ 0 372671