Download page How to Create a Conga Composer Related List View button on a Page Layout.
How to Create a Conga Composer Related List View button on a Page Layout
A List View button that allows an end-user to dynamically select the child records they want to include in a Conga Composer operation using checkboxes.
Javascript is not supported in Salesforce lightning. Using a Javascript button is not currently a feature available to use in the Lightning Experience. Conga cannot support customized code. Due to the complicated nature of supporting programmers and programming languages, the integration of Conga with Visualforce, Apex, and Javascript (or other programming languages) is not supported.
You can build a List View button that allows the end-user to dynamically select the child records they would like to include in a Conga Composer operation using checkboxes.
To create a list button on the child object:
Change your button settings toDisplay Type- List Button. Display Checkboxes (for Multi-Record Selection) should be checked.
Behavior – Execute JavaScript
Content Source – OnClick JavaScript
Copy the below text and paste it into your button. Be sure to update the Object Type in the first line to the Child Object that is the same Object as the Object your list button is on. Also, change the field in the seventh line to the Parent ID of the Object your button is on.
Create a query with all of the child fields you want to include. The WHERE clause should be the Child ID updated toIN ({pv0})
Example Query for Opportunity Product:SELECT Description, ListPrice, Product_Family__c, Quantity, UnitPrice, TotalPriceFROM OpportunityLineItemWHERE Id IN ({pv0})
Add button to layout.
Edit the Parent Object Page Layout. In edit mode go to your child related list and clickProperties(the tool icon).
Open the button options at the bottom of the pop-up, add the button and save.