<apex:repeat value="{!relatedTo.Apttus_Config2__AssetLineItems__r}" var="astitem">
<apex:outputPanel layout="none" rendered="{!IF(astItem.Apttus_Config2__EndDate__c != null && astItem.Apttus_Config2__EndDate__c == (TODAY()+60),true,false) && astItem.Apttus_Config2__AssetStatus__c == 'Activated'}">
<!--<apex:outputPanel layout="none" rendered="{!$Profile.Name =='VAR - Partner Community Login'}"> -->
<tr class="astLineItems" >
<td>{!astItem.Name} <a href="{!$SetUp.VAREmailFields__c.Partner_Comm_URL__c}">Click here to take action</a> </td>
<td>{!astItem.Apttus_Config2__AutoRenewalType__c}</td>
<td>{!astItem.Apttus_Config2__SellingTerm__c}</td>
<td>{!astItem.Apttus_Config2__Quantity__c}</td>
<td>{!astItem.Apttus_Config2__RenewalTerm__c}</td>
</tr>
<!--</apex:outputPanel>-->
</apex:outputPanel>
Please help me/guide me gurus, to get the profile name of the contact of this custom object (Apttus_Config2__AssetLineItem__c) in "rendered" of this VF email template. I know that it is not possible to get the profile name of the contact without writing SOQL query, but is there any way to achieve it in VF Email Template?
I'm accessing this snippet of code (off of VF Email template) from batch job. My relatedTo object is Account to get Orders and Asset LineItems from this VF Email template. I know if I write a VF Component and Controller, I could get the profile name. Is there any way to get the 'profile name' of the 'contact' of this custom object - 'Asset Line Item' in my rendered in VF Email template.
Thanks in advance. Gopal