Download page Add the Query to the Composer Solution Using an Alias.
Add the Query to the Composer Solution Using an Alias
Now that the Conga Query has been created, you need to replace the ReportId parameter in the button URL with the QueryId parameter. Then you need to update the value of the QueryId parameter to the Id of the new Conga Query record.
Follow the steps below to complete these tasks.
Navigate to the button in Salesforce Setup. Setup → Customize →Your Master Object (i.e. Account) → Buttons, Links, and Actions.
ClickEdit.
Delete the ReportID parameter.
Copy the QueryId parameter below and paste it into the URL where the ReportId parameter was.
&QueryId=
ClickQuick Save.
In a separate tab, navigate to the Conga Query record you created in the earlier step and copy the last fifteen characters of the URL, which is the Query record Id.
Return to the tab with your button URL and paste the Id as the value of the QueryId parameter.
Add the alias, which is the name of the query dataset as it will appear in the Template Builder and be referenced in your Conga templates. For our example, we will call oursContacts. Add the alias by typing the name between the "=" and the first character in the query Id, then surround the name with "[" and "]". Ensure there are no spaces.
ClickSaveto save the updated button URL.
Test the Query
Navigate to a record with your Composer button you are working on. Click the button to launch the solution. For our example, we will navigate to an Account record and launch ourAccount Summarybutton.
From the Composer user interface that opens, click theTools & Settingsdrop-down and select theTemplate Builder.
If the query was added correctly, you will see a new dataset named with your alias name. Expand the dataset to see the query data that Composer has retrieved. The fields available should be the same Columns you added to the query in the earlier step. In our example, we haveFirst Name,Last Name,Title, andPhone, as well as some additional fields.
Congratulations! You have completed the process of converting your report to a query. The next step is to update affected templates by mapping these new merge fields to your template. Go to the next step.