• fe_alden
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 1
    Replies
I have a VF email template that displays the related list great. However, I want to supress the entire section (including the header) if there are no rows returned. How would I go about achieving this?
Here is the existing code.
Thanks
<messaging:emailTemplate subject="New Subscription for {!relatedTo.Account.Name}" recipientType="Contact" relatedToType="ServiceContract">
    <messaging:htmlEmailBody >


        <span class="sectionTitle">SUBSCRiPTION DETAIL</span><br/>
        <apex:panelGrid columns="2">
       
            <apex:outputLabel for="CustomerName" value="End Customer:"/>
            <apex:outputText id="CustomerName" value="{!relatedTo.Account.Name}"/>
            <apex:outputLabel for="CustomerID" value="Account ID:"/>
            <apex:outputText id="CustomerID" value="{!relatedTo.Account.Customer_ID__c}"/>
            <apex:outputLabel for="PONumber" value="PO Number: "/>
            <apex:outputText id="PONumber" value="{!relatedTo.PO__c}"/>
 
         </apex:panelGrid>

        <p>
            &nbsp;
        </p>  
           
<span class="sectionTitle">Support</span><br/>

<table border="0" cellspacing="0" cellpadding="4" class="list">
    <tr>
        <th>Serial Number</th>
        <th>Product</th>
        <th>Type</th>
        <th>Start Date</th>
        <th>End Date</th>
    </tr>
    <apex:repeat var="SN" value="{!relatedTo.ContractLineItems}">
       <apex:outputPanel layout="none" rendered="{!SN.PricebookEntry.Product2.License_Feature__r.Name  == Support'}">    
    <tr>
        <td> {!SN.Asset.Name} </td>
        <td> {!SN.PricebookEntry.Product2.Name} </td>
        <td> {!SN.PricebookEntry.Product2.Level__c} </td>                
        <td> {!month(SN.StartDate)}/{!day(SN.StartDate)}/{!year(SN.StartDate)} </td>
        <td> {!month(SN.EndDate)}/{!day(SN.EndDate)}/{!year(SN.EndDate)} </td>
    </tr>
       </apex:outputPanel>    
    </apex:repeat>
</table>

     
</messaging:htmlEmailBody>
</messaging:emailTemplate>

Every email I send out from the sandbox has the words Force.com Sandbox:M in the subject. Im trying to test some workflow emails but I need to strip the "Force.com Sandbox:" verbiage out of the subject of the email. Anyone know how to do this in sandbox? Maybe there is a setting>

I want to display something different in the subject if a field has a certain value. If its another value, I want display something else. Where am I going wrong here?

 

<messaging:emailTemplate

replyTo="email@salesforce.com"    

subject="{!if(!RelatedTo.Feature_Code__c='5','Y','N')}"      

recipientType="User" relatedToType="License_Request__c">



Ive been trying to run multiple data loader commands in one batch file. The batch file has the following commands.

 

When I run each line one by one, everything works. However, I want to script this so that all the lines run one after another. The first one executes but then terminates after successful completion so it doesnt even try to run the remaing two lines. Any suggestions?

Thanks

- Big A

 

c:
cd "C:\Program Files (x86)\salesforce.com\Apex Data Loader 21.0\bin\"
process.bat "E:/Data/Dataloader/SFDCExtract" csvAccountExtract
process.bat "E:/Data/Dataloader/SFDCExtract" csvOpportunityExtract
process.bat "E:/Data/Dataloader/SFDCExtract" csvSalesOrderExtract

I want to display something different in the subject if a field has a certain value. If its another value, I want display something else. Where am I going wrong here?

 

<messaging:emailTemplate

replyTo="email@salesforce.com"    

subject="{!if(!RelatedTo.Feature_Code__c='5','Y','N')}"      

recipientType="User" relatedToType="License_Request__c">