Download page Convert Data Gathering Reports to Conga Queries.
Convert Data Gathering Reports to Conga Queries
While Salesforce Reports are used to gather data for Conga templates, it is recommended that they be converted to Conga Queries to work in Salesforce Lightning. Conga templates that merge data from those reports must also be updated.
Converting reports to queries involves three steps:
Use the Conga Query Builder to re-create the report.
Add the query to the solution using an alias.
Update affected templates
In this example, we are going to convert a Salesforce report that gathers data about Contacts related to an Account for an Account Summary solution. In general, you can use these same steps to convert any reports you are using to gather data for the solution.
Use the Conga Query Builder to Recreate the Report
The Conga Query Manager and Conga Query Builder are custom objects installed with the package. They assist with the creation of SOQL queries for use with . The steps below outline how to write a query using the Conga Query Builder.
Navigate to theConga Queriesobject (go toAll Tabs, which is the "+" in the ribbon, and then selectConga Queriesfrom the list).
ClickNew.
Give the new query record a name. In our example, we are converting a report that gathers Contact data for anAccount Summarysolution, so we will name our queryAccount Summary - [Contacts].
ClickSave.
Next, clickConga Query Builder. The Conga Query Builder is going to walk you through four steps to write the query.
Select the base object. This is the lowest-level object. For our example, we are gathering Contact data related to an Account, soContactis our base object. Select Contact and clickNext.
Select columns. These are the fields you want to merge into your Conga template. In our example, the report we are replacing currently mergesFirst Name,Last Name,Title, and Business Phone, so we are going to add those same four columns. Search for and select the columns from the list, then click the right-facing arrow to move each one over to theSelected Fieldspane. ClickNext.
Choose a selection criteria. This is the equivalent of adding a blank Master Object ID filter to your report. Choose your Master Object Id from the first field drop-down list. In our example, it isAccount ID. As you do with reports, leave the Operator asequalsand the value blank. ClickNext.
(Optional) Test the results. If you would like to test the results of the query, you can paste a sample Master Object ID into thepv0field. We will test our query later, so we will skip this step and instead clickSave.
Notice your new SOQL statement populated in the SOQL Select Statement field on the Conga Query record.