How to add a Global Merge link to a Lightning home page.

The integration of Conga with Visualforce, Apex, Javascript (or other programming languages), and custom code is not supported.

How to add a Global Merge link to a Lightning homepage:

  1. Take any current Composer solution URL that’s been built for a Custom Link and remove any spaces or carriage returns so it’s on a single line.

    The initial URL:

    /apex/APXTConga4__Conga_Composer
    ?SolMgr=1
    &serverUrl={!$Api.Partner_Server_URL_370}
    &Id={!&APXTConga4__Composer_QuickMerge__c.Id}
    &QueryId=[ClosedOpps]a1w1a000000Ooo8,[NegotiateOpps]a1w1a000000OooI,[ProposalOpps]a1w1a000000OooN,[CloseLostOpps]a1w1a000000OooS,[OppInfo]a1w1a000000Ooom
    &TemplateId=a241a000000shZh
    &DS7=13

    Becomes this URL:

    /apex/APXTConga4__Conga_Composer
    ?SolMgr=1&serverUrl={!$Api.Partner_Server_URL_370}
    &Id={!&APXTConga4__Composer_QuickMerge__c.Id}
    &QueryId=[ClosedOpps]a1w1a000000Ooo8,[NegotiateOpps]a1w1a000000OooI,[ProposalOpps]a1w1a000000OooN,[CloseLostOpps]a1w1a000000OooS,[OppInfo]a1w1a000000Ooom
    &TemplateId=a241a000000shZh
    &DS7=13

  2. Remove the merge field from the Id parameter's value and replace it with a hard-coded Global Merge record Id

    The URL below

    /apex/APXTConga4__Conga_Composer
    ?SolMgr=1&serverUrl={!$Api.Partner_Server_URL_370}
    &Id={!&APXTConga4__Composer_QuickMerge__c.Id}
    &QueryId=[ClosedOpps]a1w1a000000Ooo8,[NegotiateOpps]a1w1a000000OooI,[ProposalOpps]a1w1a000000OooN,[CloseLostOpps]a1w1a000000OooS,[OppInfo]a1w1a000000Ooom
    &TemplateId=a241a000000shZh
    &DS7=13

    Becomes this URL:
    /apex/APXTConga4__Conga_Composer
    ?SolMgr=1&serverUrl={!$Api.Partner_Server_URL_370}
    &Id=a061U000000Bs9A
    &QueryId=[ClosedOpps]a1w1a000000Ooo8,[NegotiateOpps]a1w1a000000OooI,[ProposalOpps]a1w1a000000OooN,[CloseLostOpps]a1w1a000000OooS,[OppInfo]a1w1a000000Ooom
    &TemplateId=a241a000000shZh
    &DS7=13

  3. Anywhere the link is referencing a System field like {!User.Id} above will need to be updated to have a dollar sign following the exclamation point like this {!$User.Id}.
  4. Once your URL is doctored up you can throw it into this snippet for the Visualforce page:
    <apex:page showHeader="false" sidebar="false"
    lightningStylesheets="true"> <div> 
    <apex:outputLink value="YOUR URL GOES HERE" id="WHATEVER MAKES SENSE">THE DISPLAY NAME OF THE LINK</apex:outputLink> 
    </div></apex:page>

    So your final snippet would look like this:

    <apex:page showHeader="false" sidebar="false" 
    lightningStylesheets="true"> <div> 
    <apex:outputLink value = "/apex/APXTConga4__Conga_Composer?id={!$User.Id}&QueryId=[ClosedOpps]a1w1a000000Ooo8, [NegotiateOpps]a1w1a000000OooI,[ProposalOpps]a1w1a000000OooN,[CloseLostOpps]a1w1a000000OooS, [OppInfo]a1w1a000000Ooom&TemplateId=a241a000000shZh&DS7=3" id="oppReport">
    Conga Opp Report</apex:outputLink> </div></apex:page>


  5. You could wrap any other Custom Links in their own <div> tags to get multiple links on the same page.
  6. Now copy and paste the whole snippet into the body of the VisualForce page, ensuring ‘Available for Lightning Experience, Lightning Communities, and the mobile app’ is checked TRUE. Your page should look something like this:


  7. Once you have your page created it’s time to add it to the homepage! Navigate to your Lightning Home Page click the Gear Icon  Edit Page.
  8. From the Lightning App Builder menu, select a Visualforce and drag and drop it onto the page wherever you would like the links to appear.
  9. Give the component a Label, select the Visualforce page you just created and set the Height (75 is ideal if you only have one or two links).
  10. Save your page, activate it and assign to profiles and you’re done!