• Reddy13
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi i've a situation that after sending email it should be saved as a task under activity history..

Could anyone please help me with the code. 

 

public pagereference send()
{
set<contact> setcon=new set<contact>();
List<abc__c> qc=[select id, contact__c from abc__c where id=:ApexPages.currentPage().getParameters().get('Id')];
set<ID> conids=new set<ID>();
for(abc__c q: qc)
{
conids.add(q.contact__c);
}
List<contact> conlist=[select email from contact where id=:conids];
List<String> strlist = new List<string>();
for(contact c:conlist)
{
strlist.add(c.email);
}
PageReference pr = Page.testquotepdf;

Messaging.singleemailmessage mail = new Messaging.SingleEmailMessage();

mail.setToAddresses(strlist);
mail.setsubject('abc);
mail.setplaintextbody('xyz');

Messaging.EmailFileAttachment efa = new Messaging.EmailFileAttachment();
mail.setFileAttachments(new Messaging.EmailFileAttachment[] {efa});
efa.setFileName('aa');
Blob b = pr.getcontentaspdf();
efa.setBody(b);

Messaging.SendEmailResult [] r = Messaging.sendEmail(new Messaging.SingleEmailMessage[] {mail});
return null;


}

Hi there,

Could anyone help me with the  steps  to upload an app for security review in appexchange.

 

FYI  I logged into appexchange and filled all the details under private listings and i couldn't get the option to upload package and  Start Review button.

 

Any help would be appreciated.

 

Many Thanks

Recently the Person Account functionality has been activated.
Now, when creating a new Account, type Business Account, we get the error:
"Business Account may not use Person Account field PersonLeadSource".
 
Many Thanks,
  • September 19, 2012
  • Like
  • 0

Hi,

Is it possible to restrict the number of chatter feeds on a particular object?

 

Ex: When you click on a particular object it will displays all the list of chatterfeeds associated with it, but what my requirement is that I need to restrict those to 5  recent  feeds when ever i cliked on the object.

 

Any help would be appreciated.

 

Many Thanks

  • September 12, 2012
  • Like
  • 0

Hi,

 

Is it possible to send an auto response email  to the user  that when a record is created on a custom object.

 

For example: Consider that a candidate is applied for a job vacancy, an auto response mail should be send to the candidate. Here Vacancy is a custom object that stores the candidate information. 

 

 

Any help would be appreciated!!

 

Many Thanks

  • September 08, 2012
  • Like
  • 0

Hi,

 

is it possible to create such functionality in Salesforce so as to allow a user to reassign a specific Chatter comment to another group? For example, if I have posted comments to a particular group and subsequently find there is another group that is more suitable for them can I move them to that group?

 

Any help would be appreciated.

 

Many Thanks

 

 

  • September 08, 2012
  • Like
  • 0

Hi i've a situation that after sending email it should be saved as a task under activity history..

Could anyone please help me with the code. 

 

public pagereference send()
{
set<contact> setcon=new set<contact>();
List<abc__c> qc=[select id, contact__c from abc__c where id=:ApexPages.currentPage().getParameters().get('Id')];
set<ID> conids=new set<ID>();
for(abc__c q: qc)
{
conids.add(q.contact__c);
}
List<contact> conlist=[select email from contact where id=:conids];
List<String> strlist = new List<string>();
for(contact c:conlist)
{
strlist.add(c.email);
}
PageReference pr = Page.testquotepdf;

Messaging.singleemailmessage mail = new Messaging.SingleEmailMessage();

mail.setToAddresses(strlist);
mail.setsubject('abc);
mail.setplaintextbody('xyz');

Messaging.EmailFileAttachment efa = new Messaging.EmailFileAttachment();
mail.setFileAttachments(new Messaging.EmailFileAttachment[] {efa});
efa.setFileName('aa');
Blob b = pr.getcontentaspdf();
efa.setBody(b);

Messaging.SendEmailResult [] r = Messaging.sendEmail(new Messaging.SingleEmailMessage[] {mail});
return null;


}

Hi,

 

is it possible to create such functionality in Salesforce so as to allow a user to reassign a specific Chatter comment to another group? For example, if I have posted comments to a particular group and subsequently find there is another group that is more suitable for them can I move them to that group?

 

Any help would be appreciated.

 

Many Thanks

 

 

  • September 08, 2012
  • Like
  • 0