• Preethi77
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 6
    Replies

Error: Invalid child of messaging:emailTemplate. Only messaging components are allowed as children of messaging:emailTemplate. 

 

I cannot use messaging attachment tag inside of apex repeat...I want dynamically iterate..

Please help for me.....

 

<apex:component access="global" controller="InvoicePdfControllerAttachment" allowDML="true" >

<apex:attribute access="global" assignTo="{!accountId}" name="BookingAccountId" type="String" required="true" description="Account Id"/>
<apex:attribute access="global" assignTo="{!bookId}" name="BookingId" type="String" required="true" description="Booking Id"/>


<apex:repeat value="{!bookList}" var="a">
<messaging:attachment renderAs="PDF" filename="Test">
</messaging:attachment>
</apex:repeat>

</apex:component>

Opportunity opp = new Opportunity();
 opp.StageName = 'Closed Won';
 opp.Name = 'Testopp';
 opp.CloseDate = system.today();
  Insert opp;
       
List<OpportunityHistory> sd = [ SELECT Id, OpportunityId  FROM OpportunityHistory
                                                         WHERE OpportunityId = :opp.Id ];

 

In my Test Class, I had put this code and I run this code, I can able to get opportunity History record corresponding opportunity.

 

                                         

 

 

Yesterday, i have created one custom label in my org. But i cannot able to see the custom label. I dont know any permission needed for this custom label to user for see. I am sure i dont delete this custom label. Please tell me.

Hi,

 

Attachement maximum file size ? I dont Know exactly 5 MB OR 25 MB...Please reply...

Hi, For opportunity we have OpportunityHistory object to track some fields in opportunity. same as Lead(LeadHistory), case(caseHistory).. But we dont have Task history object for Task..So Please tel me how to track fields in task object....

If any idea would appreciate...

Error: Invalid child of messaging:emailTemplate. Only messaging components are allowed as children of messaging:emailTemplate. 

 

I cannot use messaging attachment tag inside of apex repeat...I want dynamically iterate..

Please help for me.....

 

<apex:component access="global" controller="InvoicePdfControllerAttachment" allowDML="true" >

<apex:attribute access="global" assignTo="{!accountId}" name="BookingAccountId" type="String" required="true" description="Account Id"/>
<apex:attribute access="global" assignTo="{!bookId}" name="BookingId" type="String" required="true" description="Booking Id"/>


<apex:repeat value="{!bookList}" var="a">
<messaging:attachment renderAs="PDF" filename="Test">
</messaging:attachment>
</apex:repeat>

</apex:component>

Opportunity opp = new Opportunity();
 opp.StageName = 'Closed Won';
 opp.Name = 'Testopp';
 opp.CloseDate = system.today();
  Insert opp;
       
List<OpportunityHistory> sd = [ SELECT Id, OpportunityId  FROM OpportunityHistory
                                                         WHERE OpportunityId = :opp.Id ];

 

In my Test Class, I had put this code and I run this code, I can able to get opportunity History record corresponding opportunity.

 

                                         

 

 

Yesterday, i have created one custom label in my org. But i cannot able to see the custom label. I dont know any permission needed for this custom label to user for see. I am sure i dont delete this custom label. Please tell me.

Hi, For opportunity we have OpportunityHistory object to track some fields in opportunity. same as Lead(LeadHistory), case(caseHistory).. But we dont have Task history object for Task..So Please tel me how to track fields in task object....

If any idea would appreciate...

Any guidance would be much appreciated.

I'm trying to extract records from Ideas, where a custom field is populated.

i.e. I'm wanting to do an equivalent of SQLs  WHERE Body like:+SearchText+''

The field is a  Text Area.

 

I've tried WHERE field='' and various other things, but Data Loader tells me the field can't be filtered on ...Am I just getting syntax wrong or can I really not filter on a text area field? That seems odd so guessing my syntax is duff.