• Albert Zhou 10
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Dear friends,
I'm using conga to automate docusign deviliry process.
If I use the DS7 =17 parameter, there would be an error message said "There was an issue processing the Composer request"

But if I use DS7 = 7, the whole process can go through, I just need to click the "Merge & Docusign" button and will be redirected to Docusign page to send the envelop out. But I want to automate these steps with backgroung mode.

Here is our URL button:
/apex/APXTConga4__Conga_Composer?SolMgr=1
&serverUrl={!API.Partner_Server_URL_370}
&Id={!Vendor_Contracts__c.Id}

&QueryId=[VCH]a0x0K000006HVoF,
[VCL]a0x0K000006HVoO


&TemplateId={!Vendor_Contracts__c.TemplateId__c}
&DS7=17
&DocuSignR1ID={!Vendor_Contracts__c.Contact_ID__c}
&DocuSignR1Role=Signer+1
&DocuSignR1Type=Signer
&DocuSignVisible=1
&DocuSignEndPoint=Prod

Many Thanks
Albert
We have a custom Object "Vendor Contract", We want to send a email alert when the value field in this Object changed.
When doing the VisualForce email template, we want to show the value changed from the OLD Value to New Value.
But when I use "Vendor_Contract__History", it says "Error: Invalid field Vendor_Contract__History for SObject Vendor_Contracts__c"

My Code is down below:
<messaging:emailTemplate subject="Vendor Contract {!relatedTo.Name} requires Approval" 
    recipientType="User" 
    relatedToType="Vendor_Contracts__c">

    <Messaging:htmlEmailBody >
        <html>
            <style type="text/css">
            body {font-family: Calibri; size: 12pt;}
            th {
            font-size: 10pt;
            border: solid;
            border-color: #FF8C00;
            border-width: 0.5px; 
            }
            
            td {
            font-size: 10pt;
            border: solid;
            border-color: #FF8C00;
            border-width: 0.5px;
            text-align: center;
            }
            
            tr {
            border: solid;
            border-width: 20px;
            vertical-align: top;
            text-align: left;
            width: 400px;
            }
            
            </style>
            <body>

            <p>Dear {!recipient.name},</p>
            The following Vendor Contract {!relatedTo.name} has a value change.<br/>
            Below is the information of the Contract.<br/>
            <br/>
            Period: From&nbsp;<apex:outputText value="{0, date, dd MMM yyyy}"><apex:param value="{!relatedTo.Start_Date__c}"/></apex:outputText>&nbsp;To&nbsp;<apex:outputText value="{0, date, dd MMM yyyy}"><apex:param value="{!relatedTo.End_Date__c}"/></apex:outputText><br/>
            <br/>
            Account: {!relatedTo.Account__r.Display_Name__c}<br/>
            <br/>
            Budget: {!relatedTo.Budget__r.Name}<br/>
            <br/>
            Contract Value: &nbsp;<Apex:outputText value="{0, number, currency}"><apex:param value="{!relatedTo.Contract_Value__c}"/></Apex:outputText><br/>
            <br/>
            Budget Remaining: &nbsp;<Apex:outputText value="{0, number, currency}"><apex:param value="{!relatedTo.Estimated_Budget_Remaining__c}"/></Apex:outputText><br/>
            <br/>
            <table border="0" >
                <tr>
                    <th>Description</th><th>New Value</th><th>Old Value</th>
                </tr>
                <apex:repeat var="vcl" value="{!relatedTo.Vendor_Contract__History}">
                <tr>
                    <td width="170">{!vcl.Line_Description__c}</td>
                    <td width="330"> New Value
                    <td width="80"> Old Value
                    </td>
                </tr>
                </apex:repeat> 
            </table>
            <br/>
            You can click the link below to get to the contract detail page to see more details<br/>
            <apex:outputLink Value="{!LEFT($Api.Partner_Server_URL_140,FIND('.com',$Api.Partner_Server_URL_140)+4)+relatedTo.ID}">{!relatedTo.Name}</apex:outputLink><br/>
            

            Kind regards,<br/>
            {!relatedTo.CreatedBy.Name}
                                 
            </body>
        </html>
      
    </Messaging:htmlEmailBody>

</messaging:emailTemplate>


 
Dear friends,
I'm using conga to automate docusign deviliry process.
If I use the DS7 =17 parameter, there would be an error message said "There was an issue processing the Composer request"

But if I use DS7 = 7, the whole process can go through, I just need to click the "Merge & Docusign" button and will be redirected to Docusign page to send the envelop out. But I want to automate these steps with backgroung mode.

Here is our URL button:
/apex/APXTConga4__Conga_Composer?SolMgr=1
&serverUrl={!API.Partner_Server_URL_370}
&Id={!Vendor_Contracts__c.Id}

&QueryId=[VCH]a0x0K000006HVoF,
[VCL]a0x0K000006HVoO


&TemplateId={!Vendor_Contracts__c.TemplateId__c}
&DS7=17
&DocuSignR1ID={!Vendor_Contracts__c.Contact_ID__c}
&DocuSignR1Role=Signer+1
&DocuSignR1Type=Signer
&DocuSignVisible=1
&DocuSignEndPoint=Prod

Many Thanks
Albert
We have a custom Object "Vendor Contract", We want to send a email alert when the value field in this Object changed.
When doing the VisualForce email template, we want to show the value changed from the OLD Value to New Value.
But when I use "Vendor_Contract__History", it says "Error: Invalid field Vendor_Contract__History for SObject Vendor_Contracts__c"

My Code is down below:
<messaging:emailTemplate subject="Vendor Contract {!relatedTo.Name} requires Approval" 
    recipientType="User" 
    relatedToType="Vendor_Contracts__c">

    <Messaging:htmlEmailBody >
        <html>
            <style type="text/css">
            body {font-family: Calibri; size: 12pt;}
            th {
            font-size: 10pt;
            border: solid;
            border-color: #FF8C00;
            border-width: 0.5px; 
            }
            
            td {
            font-size: 10pt;
            border: solid;
            border-color: #FF8C00;
            border-width: 0.5px;
            text-align: center;
            }
            
            tr {
            border: solid;
            border-width: 20px;
            vertical-align: top;
            text-align: left;
            width: 400px;
            }
            
            </style>
            <body>

            <p>Dear {!recipient.name},</p>
            The following Vendor Contract {!relatedTo.name} has a value change.<br/>
            Below is the information of the Contract.<br/>
            <br/>
            Period: From&nbsp;<apex:outputText value="{0, date, dd MMM yyyy}"><apex:param value="{!relatedTo.Start_Date__c}"/></apex:outputText>&nbsp;To&nbsp;<apex:outputText value="{0, date, dd MMM yyyy}"><apex:param value="{!relatedTo.End_Date__c}"/></apex:outputText><br/>
            <br/>
            Account: {!relatedTo.Account__r.Display_Name__c}<br/>
            <br/>
            Budget: {!relatedTo.Budget__r.Name}<br/>
            <br/>
            Contract Value: &nbsp;<Apex:outputText value="{0, number, currency}"><apex:param value="{!relatedTo.Contract_Value__c}"/></Apex:outputText><br/>
            <br/>
            Budget Remaining: &nbsp;<Apex:outputText value="{0, number, currency}"><apex:param value="{!relatedTo.Estimated_Budget_Remaining__c}"/></Apex:outputText><br/>
            <br/>
            <table border="0" >
                <tr>
                    <th>Description</th><th>New Value</th><th>Old Value</th>
                </tr>
                <apex:repeat var="vcl" value="{!relatedTo.Vendor_Contract__History}">
                <tr>
                    <td width="170">{!vcl.Line_Description__c}</td>
                    <td width="330"> New Value
                    <td width="80"> Old Value
                    </td>
                </tr>
                </apex:repeat> 
            </table>
            <br/>
            You can click the link below to get to the contract detail page to see more details<br/>
            <apex:outputLink Value="{!LEFT($Api.Partner_Server_URL_140,FIND('.com',$Api.Partner_Server_URL_140)+4)+relatedTo.ID}">{!relatedTo.Name}</apex:outputLink><br/>
            

            Kind regards,<br/>
            {!relatedTo.CreatedBy.Name}
                                 
            </body>
        </html>
      
    </Messaging:htmlEmailBody>

</messaging:emailTemplate>