Showing posts with label Tips and Tricks. Show all posts
Showing posts with label Tips and Tricks. Show all posts

Tuesday, July 10, 2018

Reports and Cross Filters

A colleague of mine reminded me today of an under-used feature of Salesforce Reporting, Cross Object Filters so I thought I'd write a quick blog about them.

What are they and when might I need to use them?

What are they?

Cross filters are used to further limit your results by including or excluding records from related objects and their fields. You can apply cross filters by themselves, or in combination with report field filters.

Sample Use Case

We want to add Contacts to a campaign who have made a donation of  over $100's in the past year excluding in honor/in memory of donations.

Why is this a good Use Case?  We need to base our report on Contacts in order to take advantage of the Add to Campaign button from a report but we need to limit our data by information only found on the opportunity record such as the in honor/in memory of indicator.

How do we do it?

In this case we'll want to create a report based on Contacts and Accounts but we will leverage the cross filter using the WITH condition to show Contacts WITH opportunities in the last year over $100 that are not of type in honor/in memory. 


First we'll create the report based on  Contacts and Accounts

Next we'll add any filters we want to use from the Contact or Account object.  In my example I'm excluding anyone who has the indicator on their contact record of Do Not Contact.

Now we will add our cross filter.  I am cross-filtering on the opportunity object and selecting any contacts that have opportunities that are not of type Honor or Memorial. 

I'll start by choosing Add Cross Filter from the filters drop-down.


This will  bring up the Cross Filter screen where I can choose my "Show Me" options.  I want to see Contacts WITH Opportunities so I'll choose With from the drop-down and Opportunities as the Secondary Object and click Apply.


Next I'll click on the Add Opportunities Filter to add my filter to exclude tribute type gifts.

I search for my opportunity field, in this case Tribute Type, choose the Operator of not equal to and choose the values that I don't want included (Honor and Memorial).  Then click Apply.  We can add additional filters like gift amount if desired by repeating this process.


Now my report contains filters from the Contact object (top) and Cross filters from my Cross filter object (bottom).




At the time of this blog posting, the Add to Campaign button feature is not available in Lightning.  To see the Add to Campaign button.  Switch to Classic view and Run the report.



Note:  When I run the report, I can only display fields from the Report Type objects (Contacts and Accounts).  Fields from the Cross Filter object are not available to add to the display results.

For more information on cross-filters see these awesome resources.

Sunday, May 13, 2018

Working with Salesforce Calendars



Use Calendars to Quickly View Important Information

  • Add the Calendar Tab to your Lightning App for quick reference
  • Create List Views on objects to filter data to display on your calendar
  • By default, your calendar will display events only but you can create various calendars to display important information such as Tasks or Campaigns
  • You can control the colors of each calendar by clicking on the drop-down to the right of the calendar name


Adding Calendars to your calendar tab - Tasks

  • From the calendar page, click on the gear icon to the right of My Calendars and choose New Calendar

  • To add a calendar showing the tasks assigned to you, choose Task as the object.


  • At the next screen give the calendar a name My Tasks.  choose Due Date Only (Date) as the Field for Start.  Leave the Field for End blank.  In the Field Name to display choose the Subject field.  Save the new calendar.



Adding Calendars to your calendar tab - Campaigns

  • From the calendar page, click on the gear icon to the right of My Calendars and choose New Calendar
  • Choose Campaign as the object.
  • Choose Start Date as the Field for Start 
  • Choose End Data as the Field for End
  • Optional:  *Choose a filter to apply
  • Choose Name as the Field Name to Display
  • Save the New Calendar

*In the example below, I want to display all the training campaigns.  I have setup my Salesforce instance so that all training campaigns use the campaign record type of Training.  I then setup a list view on the Campaign object called Training Campaign that filters for only Campaigns of record type Training.





Salesforce Favorites: Frequently Used Information at Your Finger Tips

Always need reports from a specific folder? Have a report that you run frequently? Have that one Account that you are constantly nurtur...