• Eyal
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 13
    Replies

Hi,

usually when I save to server from eclipse to sand box of saleforce it works fine ,

but today I keep
getting this error pop up window:

"Fetch Cycle Limit Reached

Server processing time has exceeded (600 sec)

Abort operation or continue waiting for the server? "

my sb server cs8, seems to work fine in trust.saleforce.com

any idea what I can do ?

Thanks a lot,
Eyal

  • December 03, 2013
  • Like
  • 0

Hi Friends, 

 

I am sending an email based on template. I want to count the number of times emails are count successfully.

 

As you can see here:

 

 

try {
     Messaging.sendEmail(new Messaging.SingleEmailMessage[] {mail});
     Messaging.SendEmailResult[] mailResult = Messaging.sendEmail(new      
Messaging.SingleEmailMessage[] { mail }); if ( !mailResult[0].isSuccess() )
{ EmailFailure = 'Email Failed: ' + mailResult[0].getErrors()[0].getMessage() +' \n \n'; } else { EmailCounter.Emails_sent_from_apex__c = EmailCounter.Emails_sent_from_apex__c +
Number_Of_Recipients ; update EmailCounter; } } catch(System.EmailException emlEx)
{ EmailFailure = 'we got here: ' + emlEx+' \n \n'; }

The surprising thing is that I do get the email as expected BUT an  Email exception is till thrown. As a result my counter is not updated, even though an email was sent. 

 

The Email exception received is:  System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_FIELD_WHEN_USING_TEMPLATE, When a template is specified the plain text body, html body, subject and charset may not be specified : []

 

Just to make is clear - I am NOT using :text body, html body, subject and charset.

 

Why do I get this exception ?

 

Please Help :)

 

Eyal

 

  • July 11, 2013
  • Like
  • 0

Hi All,

 

I am trying to write the catch part of the try catch

 

I want to send my email via external provider in case my org is exceeding the  1000 emails per day limitation:

 

   catch(exception  ex){
                      if (ex.getMessage()=='SINGLE_EMAIL_LIMIT_EXCEEDED')    
                         }

 

I don't know how to test it ( how to send 1000 emails in a test to get to the limit .... )

 

So, does anyone of you know from their experience if this catch code above will catch this exception ?

 

Thx,

Eyal Filiba

 

  • August 22, 2012
  • Like
  • 0

Hello,

 

Does anyone know how can I convert a merged template to HTML body and save it ? ( i.e. I want to use the send.email methods but instead of sending the  email, I want to save the email in HTML so I will be able to send it via external provider in case I exceeded the daily limit of 1000 outbound emails per day.

 

Thanks,

Eyal

 

  • April 10, 2012
  • Like
  • 0

Hi All,

 

Can I use apex ?

 

Can I add it to a visualforce page ?

 

Is there any application I can use ?

 

Thanks,
Eyal

  • March 16, 2012
  • Like
  • 0

Hello,

 

We are currently sending our invoices on email based format only with a custom HTML template which is merged with the relevant opportunity. This invoices are sent automatically once the client pays.

 

Many times our clients ask for a PDF attachment for their records.

 

Unfortunately, I haven't found any way to setup a PDF in apex and attach it to the invoice.

 

Is there any way to do so with apex ?

 

I would appreciate any leads or ideas on how to proceed with this issue

 

Thanks a lot,

 

Eyal

 

 

  • February 27, 2012
  • Like
  • 0

Hello,

 

I want to install CMSForce app in order to easily build and design new visual force sites.

 

Unfortunately, I get this error while trying to install this app:

 

" Your requested install failed. Please try this again.

None of the data or setup information in your salesforce.com organization should have been affected by this error.

If this error persists, contact salesforce.com Support through your normal channels and reference number: 838506144-2781 (1733437376) "
Does anyone know how to overcome this error ?
Thanks,
Eyal


  • January 16, 2012
  • Like
  • 0

Hello,

 

I have 2 questions:

 

1. I created a page in visual force which presents a list of a custom object called User Vide.

 

In order to do so, I used the  selectList  tag. In addition, I am using the actionSupport tag to retrieve the records.

 

Afterward, I am using the pageBlockTable tag to present the relevant fields in a table.

 

The problem is that I want the user to see the list in the table  BUT I don't want him to be able to choose a view, because there is only one view, so it doesn't make sense.

 

How can I hide the view pick list graphics and still get the table ?

 

I am adding my page:

 

<apex:page standardController="User_Video__c"  extensions="ExstensionControlerUserVideo"  recordSetvar="User_Videos__c">
    <apex:form >
        <apex:pageBlock >
            <apex:pageMessages />
         
            <apex:pageBlock >
               
                   <apex:panelGrid columns="2">
                    <apex:outputLabel value=""/>
                    <apex:  selectList value="{!filterId}" size="1" rendered="False">
                        <apex:actionSupport event="onchange" rerender="UV_table"/>
                        <apex:selectOptions value="{!listviewoptions}"/>
                    </apex:selectList>
                </apex:panelGrid>
            </apex:pageBlock>
          
             <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}"/>
            </apex:pageBlockButtons>
        
            <apex:pageBlockTable value="{!User_VideoS__c}" var="UV" id="UV_table">
                  /// fields ...      
            </apex:pageBlockTable>
        </apex:pageBlock>
   </apex:form>
</apex:page>

 

 

 

2. I tried to use the cookbook to design my site : http://developer.force.com/cookbook/recipe/customizing-the-look-and-feel-of-your-force-com-site 

 

I added a logo of my org to the static resources and did all has descirbed, but the site header looks the same.

 

Must I define a CSS style sheet in order to change the look and feel of my site ?

 

I am adding my new header:

 

<apex:component id="headerComponent">
  <apex:panelGrid cellpadding="0" cellspacing="0" width="98%" border="0" columns="2" style="text-align: left;" id="theHeader">
    <apex:image id="logo" value="{!$Resource.logo}"/>    <-----  this is what I changed 
    <apex:panelGrid cellpadding="0" cellspacing="0" width="100%" border="0" columns="1" style="text-align: right;" id="Links">
      <apex:panelGroup rendered="{!AND(ISPICKVAL($User.UserType,'Guest'), $Site.LoginEnabled)}">
        <apex:outputLink value="/site/SiteLogin.apexp">{!$Label.site.login_button}</apex:outputLink>
        <apex:outputText value=" | "/>
        <apex:outputLink value="/site/ForgotPassword.apexp">{!$Label.site.forgot_your_password_q}</apex:outputLink>
        <apex:outputText value=" | " rendered="{!$Site.RegistrationEnabled}"/>
        <apex:outputLink value="/site/SiteRegister.apexp" rendered="{!$Site.RegistrationEnabled}">{!$Label.site.new_user_q}</apex:outputLink>
      </apex:panelGroup>
      <apex:outputLink value="{!$Site.Prefix}/secur/logout.jsp" rendered="{!NOT(ISPICKVAL($User.UserType,'Guest'))}">{!$Label.site.logout}</apex:outputLink>
    </apex:panelGrid>
  </apex:panelGrid>
</apex:component>

 

 

Thanks a lot for your help,

 

Eyal

 

 

  • January 11, 2012
  • Like
  • 0

Hello,

 

In order to let my user return to the same page after saving , I added an extension to the standard controller that changes the save action to return null.  This is my extension class:

public  class ExstensionControlerUserVideo {

    private final User_Video__c UserVideo;

     public ExstensionControlerUserVideo(

ApexPages.StandardSetController Controller) {
    this.UserVideo = (User_Video__c)Controller.getRecord();
    }
               
     public PageReference Save() {
           Update  UserVideo;
           return null; // redirect to same page
           }
}

However, my page still redirects the user to another page.

Do I need to change the save action tag in the visual force page also ?

Currently it is like this:

    <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}"/>
            </apex:pageBlockButtons>

How do I override the standared save action ?

Thanks a lot,
Eyal
  • January 11, 2012
  • Like
  • 0

Hello,

 

I built a visualforce page which shows a view list on one of my custom objects called User_Videos__c

 

 I would like to change the "save" action of the standard controller  so the user will be redirected to the same page.

 

I heard that I need to write a new extension for the standard controller , so after saving it will return null.

 

This is my extension class:

 

public  class ExstensionControlerUserVideo {

    private final User_Video__c UserVideo;

        public ExstensionControlerUserVideo(ApexPages.StandardController Controller) {
        this.UserVideo = (User_Video__c)stdController.getRecord();
        }
        
     private ApexPages.StandardController stdController{get; set;}    
        
     public PageReference Save() {
           Update  UserVideo;
           return null; // redirect to same page
           }
}

 

 

When I had it to the page like this:

 

<apex:page standardController="User_Video__c"  extensions="ExstensionControlerUserVideo" recordSetvar="User_Videos__c">
    <apex:form >
        <apex:pageBlock >
            <apex:pageMessages />
            <apex:pageBlock >  .....

 

I get the following error:

 

Error: Unknown constructor 'ExstensionControlerUserVideo.ExstensionControlerUserVideo(ApexPages.StandardSetController controller)'

 

What am I doing wrong ? How should my code be?

 

Do I need to do a custom controller ? ( I tried but than I get an error that I am using functions that don't exists in my custom controller .. )

 

Please help

Eyal

  • January 10, 2012
  • Like
  • 0

Hi all,

 

I want to send emails by triggers  to clients  not from my email , but from other SF useres that we have (our salesmans)

 

I looked for a solution and relize there isnt one

 

so I think of opening more eclpise projects for our other SF users  and write their triggers their , so the trigger will send mails from their addres 

 

is it possible to open more projects in the eclipse for another SF user ?

 

how do I do that ?

 

will it reslove my problem  ? 

 

thanks !! 

  • August 17, 2010
  • Like
  • 0

Hey

 

I have question that maybe you got the answer :

 

I want to build a button in the account that will open a new opportunity and that some of the fields

will be with data from the account

 

i started with {!URLFOR($Action.Opportunity.New)};

 

but i dont know how to continue, can you help me ?

 

Thanks Elad

  • September 09, 2009
  • Like
  • 0

Hello

 

I'm a very new in all the salesforce business

i'm trying to make a new button in the account that will open me a new task with some data in the fields

 

 

Someone can help me ?

 

Thanks

Elad

 

 

  • September 08, 2009
  • Like
  • 0

Hi All,

 

Can I use apex ?

 

Can I add it to a visualforce page ?

 

Is there any application I can use ?

 

Thanks,
Eyal

  • March 16, 2012
  • Like
  • 0

Hello,

 

We are currently sending our invoices on email based format only with a custom HTML template which is merged with the relevant opportunity. This invoices are sent automatically once the client pays.

 

Many times our clients ask for a PDF attachment for their records.

 

Unfortunately, I haven't found any way to setup a PDF in apex and attach it to the invoice.

 

Is there any way to do so with apex ?

 

I would appreciate any leads or ideas on how to proceed with this issue

 

Thanks a lot,

 

Eyal

 

 

  • February 27, 2012
  • Like
  • 0

Hello,

 

I want to install CMSForce app in order to easily build and design new visual force sites.

 

Unfortunately, I get this error while trying to install this app:

 

" Your requested install failed. Please try this again.

None of the data or setup information in your salesforce.com organization should have been affected by this error.

If this error persists, contact salesforce.com Support through your normal channels and reference number: 838506144-2781 (1733437376) "
Does anyone know how to overcome this error ?
Thanks,
Eyal


  • January 16, 2012
  • Like
  • 0

Hello,

 

In order to let my user return to the same page after saving , I added an extension to the standard controller that changes the save action to return null.  This is my extension class:

public  class ExstensionControlerUserVideo {

    private final User_Video__c UserVideo;

     public ExstensionControlerUserVideo(

ApexPages.StandardSetController Controller) {
    this.UserVideo = (User_Video__c)Controller.getRecord();
    }
               
     public PageReference Save() {
           Update  UserVideo;
           return null; // redirect to same page
           }
}

However, my page still redirects the user to another page.

Do I need to change the save action tag in the visual force page also ?

Currently it is like this:

    <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}"/>
            </apex:pageBlockButtons>

How do I override the standared save action ?

Thanks a lot,
Eyal
  • January 11, 2012
  • Like
  • 0

Hello,

 

I built a visualforce page which shows a view list on one of my custom objects called User_Videos__c

 

 I would like to change the "save" action of the standard controller  so the user will be redirected to the same page.

 

I heard that I need to write a new extension for the standard controller , so after saving it will return null.

 

This is my extension class:

 

public  class ExstensionControlerUserVideo {

    private final User_Video__c UserVideo;

        public ExstensionControlerUserVideo(ApexPages.StandardController Controller) {
        this.UserVideo = (User_Video__c)stdController.getRecord();
        }
        
     private ApexPages.StandardController stdController{get; set;}    
        
     public PageReference Save() {
           Update  UserVideo;
           return null; // redirect to same page
           }
}

 

 

When I had it to the page like this:

 

<apex:page standardController="User_Video__c"  extensions="ExstensionControlerUserVideo" recordSetvar="User_Videos__c">
    <apex:form >
        <apex:pageBlock >
            <apex:pageMessages />
            <apex:pageBlock >  .....

 

I get the following error:

 

Error: Unknown constructor 'ExstensionControlerUserVideo.ExstensionControlerUserVideo(ApexPages.StandardSetController controller)'

 

What am I doing wrong ? How should my code be?

 

Do I need to do a custom controller ? ( I tried but than I get an error that I am using functions that don't exists in my custom controller .. )

 

Please help

Eyal

  • January 10, 2012
  • Like
  • 0

Using the SingleEmailMessage class I am trying to set the template Id, what Id, and target Id. I was disappointed when I tried to get the html body and found the body to be null. Is there a way to get an email template body after a merge with an sObject? Here is what I thought would work...

 

 

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setTargetObjectId(contactId);
mail.setTemplateId(templateId);
mail.setWhatId(caseId);
		
System.debug('*********************');
System.debug(mail.getHtmlBody()); // getHtmlBody returns null :(

 

 

  • November 08, 2010
  • Like
  • 0

Hello

 

I'm a very new in all the salesforce business

i'm trying to make a new button in the account that will open me a new task with some data in the fields

 

 

Someone can help me ?

 

Thanks

Elad

 

 

  • September 08, 2009
  • Like
  • 0

How many emails can the sendEmail  Apex method send out per day?

 

I went through the documentation, and here is what is says:

a. "All mass email and single email messages sent with the sendEmail method count against the daily mass mail limit of the sending organization."

 

b. "You can send mass email to a maximum of 1000 external email addresses per day based on Greenwich Mean Time (GMT)."

 

Statement 'b', in my opinion means that you can send emails to maximum 1000 distinct email addresses per day, but it says nothing about the number of actual email messages being sent.

 

 

Thanks.