Skip to main content
Conga Support

Create a Conductor List View Button

Setting up a List View button to launch Conga Conductor is easy – you will create a button on the Master Object, paste the code from the Conga Conductor Sample List View button, adjust the code to your needs and place the button on the object’s Search Layout. The following section describes these steps in detail.

NOTE: Due to their complicated nature the integration of Conga with JavaScript, Visualforce and Apex (or other programming languages) is not supported.

To create a list view button:

  1. Copy the OnClick JavaScript code from the Sample List View Button on the Conga Conductor object.

  2. Navigate to Salesforce Setup > Build > Create > Objects > Conga Conductor > Buttons, Links, and Actions > Sample List View Button.

  3. For convenience, the JavaScript code is also included below to facilitate copying and pasting.

    // STEP 1: CHANGE THE NEXT LINE TO THE TYPE OF RECORDS YOU'RE ACCESSING ON THE VIEW
    var idArray = {!GETRECORDIDS( $ObjectType.Opportunity )};
    
    // STEP 2: CHANGE THE NEXT LINE TO THE API NAME OF THE FIELD THAT CONTAINS THE CONGA COMPOSER URL
    var urlFieldName="ComposerFormula_URL__c";
    
    
    // DO NOT MODIFY ANYTHING BELOW THIS POINT ********************
    
    // YOU MAY PASS UP TO 50 IDS
    
    var CongaURL = "https://conductor.congamerge.com" +
    "?MOID=" + idArray +
    "&SessionId={!$Api.Session_ID}" +
    "&ServerUrl={!$Api.Partner_Server_URL_160}"+
    "&UrlFieldName="+urlFieldName;
    
    window.open( CongaURL, "Conga", "width=700,height=450,menubar=0" );
  4. Create a button on your Master Object.

    This Master Object needs to be the same as the Master Object you specified in the Conga Composer solution that you converted into a Conga Conductor formula field.

  5. Paste the OnClick JavaScript code you copied from the Conga Conductor Sample List View Button into the body of your new button.

  6. Label the button.

  7. Set the Display Type to List Button and enable Display Checkboxes.

  8. Ensure the button’s Behavior is set to Execute JavaScript.

  9. Set the Content Source as OnClick JavaScript.

  10. Set the $ObjectType to your Master Object by choosing $ObjectType from the Select Field Type picklist and then choosing your Master Object from the Insert Field picklist.

    In this example, the Master Objects from our Composer solution is Opportunity, so the line is set to $ObjectType.Opportunity.

  11. Set the urlFieldName value to the API name of the formula field you created with the Conga Formula Builder.
    In this example, our formula field API name is Conductor_URL_Simple_Proposal__c.

  12. Edit the Master Object List View under Search Layouts.

    For example, since we’re using the Opportunity as our Master Object, we navigate to Build > Customize > Opportunities > Search Layouts > Opportunities List View.

    We recommend using Enable Enhanced Lists under Salesforce Setup > Customize > User Interface to best utilize List View buttons.

  13. Click the Add button to move your List View button to Selected Buttons menu.

    Click Save.

    Configuration is complete and your Conductor List View button is ready to use.