Skip to main content
Hi there,

 

I'm having trouble creating an advanced approval request template that includes all line items on a quote.

 

Our current email template is related to the Quote object (salesforce approval process) and shows all the line items on the quote in a table:

 

    <table border="0" >

 

      <tr > 

 

        <th>Name</th><th>Quantity</th><th>List Price</th><th>Discount</th>

 

      </tr>

 

      <apex:repeat var="quoteLine" value="{!relatedTo.SBQQ__LineItems__r}">

 

          <apex:outputPanel rendered="{!IF(quoteLine.SBQQ__Hidden__c = false, true, false)}">

 

              <tr>

 

                  <td>{!quoteLine.SBQQ__ProductName__c}</td>

 

                  <td>{!quoteLine.SBQQ__Quantity__c}</td>

 

                  <td>${!quoteLine.SBQQ__ListPrice__c}</td>

 

                  <td>{!quoteLine.SBQQ__TotalDiscountRate__c}%</td>

 

              </tr>

 

          </apex:outputPanel>

 

      </apex:repeat>                 

 

    </table>

 

However, I'm having a hard time converting this to an Advanced Approval email template where the type is related to sbaa__Approval__c. Any ideas how I can still preserve this table?

 

I've tried changing <apex:repeat var="quoteLine" value="{!relatedTo.SBQQ__LineItems__r}"> to <apex:repeat var="quoteLine" value="{!relatedTo.Quote__r.SBQQ__LineItems__r}"> but nothing worked.

 

Thanks in advance!
11 respuestas
0/9000