• Soujanya_CG123
  • NEWBIE
  • 0 Points
  • Member since 2009

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

Hi,

 

I am writing a trigger that will send emails. In this trigger i am adding email ids to an array as shown below

 

          emails.add('soujanya.bussa@capgemini.com');

 

emails is String array.

 

But i am getting an exception that "invalid to address" while trying to send out the email.

 

But if i am passing like emails = new String[]{'soujanya.bussa@capgemini.com'}; the emails are sent.

So please help me to solve this issue.

Message Edited by Soujanya_CG123 on 04-14-2009 11:26 PM

Hi,

 

When na6 site is under maintanance we get the below message

          SCHEDULED MAINTENANCE NOTIFICATION

          -Service Will Not Be Available Between-

               Monday March 02, 8 AM GMT

                                To

               Monday March 02, 9 AM GMT.

 Can we also get this message for portal when it is under maintanance. 

 

I have stored an image in Shared Document as image file.

 

In email template i am using img tag as given below

<img src="/servlet/servlet.ImageServer?id=01580000000YX5Z&oid=00D80000000JvV1&lastMod=1227023274000" alt="Right click on the image to save it to your computer." title="Right click on the image to save it to your computer." />

 

I also tried appending http://na6.salesforce.ocm to the src

 

This path is taken from View source of the file (image file)  in the shared documents.

 

When this template is sent to users this image is not seen.

 

 

Thanks,

Soujanya.

Message Edited by Soujanya_CG123 on 03-09-2009 05:45 AM

I am not able to create vote Object in Apex class version. Below is the code

 

public class Details{
    public Details(){
    }
   
    public void getDetails(){
        Vote[] voteDetails = [select id, type from Vote];
    }
}

 

When i try to save the above code error is thrown :
Error: Compile Error: Illegal assignment from LIST:SOBJECT:Vote to LIST:Vote at line 6 column 9 

 

 

This was workign fine before, but now when i am trying out with the same code I am not able to...

Thanks,
Soujanya.
Message Edited by Soujanya_CG123 on 03-09-2009 05:31 AM

Hi,

 

I am using an email template to notify user when a new user is created, this email is set as the "New User Template" in Portal. Email is working fine, but the username and password details are coming at the bottom of the page. Is there anyway to give username and password at another place. These details are coming by default from salesforce.

 

Thanks,

Soujanya.

Hi,

 

 

I am giving a link in portal. This link opens a visual force page. But when I am trying to open this page I am gettign an exception "Insufficient Privileges". I have given access to the apex classes and pages to that particular profile of the portal user.

 

Thanks,

Soujanya.

 

 

 

 

Message Edited by Soujanya_CG123 on 02-13-2009 02:13 AM

Hi,

 

I am not able to create vote object in trigger or apex class to retreive records.

I am trying to fetch the records from Vote Object as shown below..
Vote[] vote = [select id, createdById from Vote];

I am getting an error message like this
Illegal assignment from LIST:SOBJECT:Vote to Vote

If we get records into SObject, we are not able to convert SObject to Vote.

This problem we are facing in sandbox(cs1).

 

 

Thanks,

Soujanya.

Hi,

 

I am writing a trigger that will send emails. In this trigger i am adding email ids to an array as shown below

 

          emails.add('soujanya.bussa@capgemini.com');

 

emails is String array.

 

But i am getting an exception that "invalid to address" while trying to send out the email.

 

But if i am passing like emails = new String[]{'soujanya.bussa@capgemini.com'}; the emails are sent.

So please help me to solve this issue.

Message Edited by Soujanya_CG123 on 04-14-2009 11:26 PM

I am not able to create vote Object in Apex class version. Below is the code

 

public class Details{
    public Details(){
    }
   
    public void getDetails(){
        Vote[] voteDetails = [select id, type from Vote];
    }
}

 

When i try to save the above code error is thrown :
Error: Compile Error: Illegal assignment from LIST:SOBJECT:Vote to LIST:Vote at line 6 column 9 

 

 

This was workign fine before, but now when i am trying out with the same code I am not able to...

Thanks,
Soujanya.
Message Edited by Soujanya_CG123 on 03-09-2009 05:31 AM

Hi,

 

 

I am giving a link in portal. This link opens a visual force page. But when I am trying to open this page I am gettign an exception "Insufficient Privileges". I have given access to the apex classes and pages to that particular profile of the portal user.

 

Thanks,

Soujanya.

 

 

 

 

Message Edited by Soujanya_CG123 on 02-13-2009 02:13 AM

Hi,

 

I am not able to create vote object in trigger or apex class to retreive records.

I am trying to fetch the records from Vote Object as shown below..
Vote[] vote = [select id, createdById from Vote];

I am getting an error message like this
Illegal assignment from LIST:SOBJECT:Vote to Vote

If we get records into SObject, we are not able to convert SObject to Vote.

This problem we are facing in sandbox(cs1).

 

 

Thanks,

Soujanya.