Blog

Conga Composer is one of the most widely used 3rd party AppExchange apps for document generation with Salesforce. It can be used to merge Salesforce data to produce documents in Word, Excel, Powerpoint, HTML Email and PDF format. Here is a quick guide to generating an Excel spreadsheet with data from Salesforce.

  1. Create Your Excel Template
  2. Define the Fields and Reports it will use
  3. Add Merge Fields to the Excel Template
  4. Create a Salesforce Conga Template Record
  5. Setup Your Conga Button


1. Create Your Excel Template

The first step is to define the Excel template. Create labels and leave room for the field values. If there will be any tables of data think about how many rows you need, so you can define the layout around that. For example you may want a list of open opportunities sorted by amount value. Perhaps you only want the top 5 for a particular account. In that case you can design your template around a table with 5 rows.

2. Define the Fields and Reports it will use

List the fields that will be used on the report. If you are having any tables of data, define or create the reports that will supply the data. Make sure the fields you need are in the reports. If the Excel table will only have a limited number of rows, use the row limit feature in Salesforce reports to make sure that the report will only return a certain number of rows.

3. Add the Merge Fields to the Excel Template

Add the fields from the master object and any report fields to the template. For the master fields, use the syntax : &=Master.FIELD_NAME

Conga Excel Merge Fields

Conga Excel Merge Fields

For reports, you can reference the report by an alias that you define in the conga button, and then reference the field names. In this case, the opportunity report alias is OPPS.

Conga Excel Table Report Merge Fields

Conga Excel Table Report Merge Fields



4. Create a Salesforce Conga Template Record

In this step, you create the conga template record that is referenced by the Conga Button. You create a Conga Template record and attach the actual template as an attachment to the record. You then grab the id of the record and use that in your Conga button definition. Remember to update the id when deploying into a new environment as it will be different.

Conga Account Profile Template Record

Conga Account Profile Template Record



5. Setup Your Conga Button

Conga Button Setup

Conga Button Setup

The basic setup of the button to work with Excel is no different to setting it up to work with Word.
After the Conga URL, in this case the button is on Account so we provide the Account Id and then use the various Conga parameters to control the behaviour of the document generation. In the example we are using the following parameters:

FP0: Controls whether to lock the output as PDF. In our case, we are not.

OFN: Used to generate the file name of the produced document. In this case it will be ‘Profile For ‘ and then the Account Name.

LG3: Used to control if a generated document is attached to the account record. We are using 0 for no attachment. This is very useful to have a log of the documents generated over time, especially if being used for quotes or order documents.

LG4: Used to control if an activity is logged against the account record. We are using 0 for not logging an activity.

DS7: Used to control background mode. When the document is being developed this is usually set to 0, but once you are complete it is set to 13 so that the document is generated automatically and delivered to the browser.

BML: Message displayed when the document is being generated.

Template Id: This is the Id of the Conga Template record you created and attached the template file.

Report Id: If a report is being used as a data source for the template, the Id is specified here. In this case, we are using an alias for the report [OPPS] to make it easier to refer to it in the report.

SCHP: This removes punctuation characters from Salesforce field names, as they can cause problems in Excel.

What Certification are you studying for now?

Focus on Force currently provides practice exams and study guides for sixteen certifications

Quick Start Guide to using Conga Composer with Excel

Conga Composer is one of the most widely used 3rd party AppExchange apps for document generation with Salesforce. It can be used to merge Salesforce data to produce documents in Word, Excel, Powerpoint, HTML Email and PDF format. Here is a quick guide to generating an Excel spreadsheet with data from Salesforce. Create Your Excel Template Define the Fields and Reports it will use Add Merge Fields to the Excel… Read More

Quick Start Guide to using Conga Composer with Excel

How to Delete Multiple Records from a Salesforce Related List

You may be faced with the situation where you need to be able to delete multiple records from a related list in one click. Standard related lists do not have a feature to select all and delete all selected records. The standard way to delete from a related list is to use the del link and delete each record individually. This can be very time consuming and tiresome if there… Read More

How to Delete Multiple Records from a Salesforce Related List

Salesforce Cross Filter Report Examples

You may have come across cross filters when learning about Salesforce reports but having no immediate need for them, forget about them. It is only sometime later when faced with a reporting challenge that you may delve back and find that they are very useful and may even solve a problem that you thought you could not do with Salesforce reports. Lets review what reports with cross filters can do:… Read More

Salesforce Cross Filter Report Examples

Salesforce Email Templates

When you send an email from Salesforce, such as when you use the Send Email button or triggered from a workflow, you can select an email template. Email Templates in Salesforce come in four different types: Plain Text HTML using Letterhead HTML Custom Visualforce Plain Text Email Template This is the simplest email template to create. You can create it very quickly by entering the email text and including the… Read More

Salesforce Email Templates

Salesforce Lead Conversion

I was looking for a process flow diagram, that describes what happens when a lead is converted in Salesforce. I couldn’t find one, so I made my own. Once a lead is qualified, the next step is to convert the lead. In Salesforce, when you convert a lead, there are a number of options that are part of the process flow. The first step is to press the convert button…. Read More

Salesforce Lead Conversion

How to Display a Traffic Light Indicator in Salesforce

Visual indicators are a great addition to a Salesforce page to highlight important information or values. Instead of just displaying a value, showing an image will make a much larger impact. Depending on the situation, it may be more suitable to just display a single indicator such as a caution or stop image, or if a variable can have a range of values, display a variable image according to which… Read More

How to Display a Traffic Light Indicator in Salesforce

Salesforce Platform Overview

There are a number of features and functionality that are part of the Salesforce platform and are available to all Salesforce solutions. They offer the technology or functionality that can be used either standalone (e.g. content management) or used to build upon (e.g. force.com code). As they are common across the different Salesforce applications (e.g. Sales Cloud, Service Cloud and custom applications) they are part of the Salesforce platform. The… Read More

Salesforce Platform Overview

Salesforce Activities Tab and List View

  You may wonder where the Activities tab is in Salesforce, so you can see a list view of activities. You can see the task list and calendar on the home page but what if you would like to see all of your tasks and events in a list. Well there is a way to get to a list view, but it is easy to overlook. In the calendar section… Read More

Salesforce Activities Tab and List View

Salesforce and Email – What are the options?

When it comes to Salesforce and email, it can get confusing to understand what the options are. Read on to discover 10 ways you can work with email and Salesforce together. Sending Email from Salesforce Some people may wonder whether integration to an email client such as Outlook is even necessary. If Salesforce could send and automatically process incoming emails, then couldn’t users just live in Salesforce and use it… Read More

Salesforce and Email – What are the options?

Salesforce URL Hacking

You may find yourself with the requirement to create a record from a related list and populate a number of fields. By default, Salesforce will populate the field on the related record that links the two objects, but no other fields. For example, if you create a record for a custom object related to an opportunity, the custom record will have the opportunity populated as it relates the two records,… Read More

Salesforce URL Hacking

Salesforce Joined Reports

It can be tricky to understand how Joined reports work in Salesforce. For those who have experience with database queries or other report writing tools, the name Joined report can raise expectations that it will be possible to report on data joined from different objects in the one report. A way to think of joined reports is of separate block reports where the data can be optionally grouped to ‘join’… Read More

Salesforce Joined Reports