• bobby7
  • NEWBIE
  • 5 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 7
    Replies
We've built a routine in Org 00Dd0000000c8w1 to send emails to outside recipients, with a CC to the Partner Portal User that launched it, that include attachments from an Opportunity along with details of that Opportunity.

This functionality has worked successfully for two years. However, we've begun to see intermittent issues where the email appears to be sent from within Salesforce, but the intended recipient and the Partner do not receive the email.

Frustratingly, it's happening intermittently and we can't reproduce it as Admins, even when we log in as that particular user.

Additionally, we have another emerging and intermittent issue with a DIFFERENT email function. This one is set up to send email to an outside recipient with a CC to the User / Partner who sent. These attachments are picked up from files in the the Documents section of Salesforce. Total attachments add up to less than 1MB in aggregate size.

In this scenario, the email comes over with with appear to be mangled attachments. The file titles are all correct, but the size is down to a few kb and no file extension appears. Neither sender (who is CC'd) nor intended recipient can open them.

As an Admin, when I test it, it works properly for me.
  • September 16, 2014
  • Like
  • 0
I have a Partner user Test1 ,He has 2 managers (Z1 and Z2), When he changes the owner opportunity to Z1 but he cannot change the owner to Z2. He is not getting the user in search results . Where he can assign the record to Z1 by searching in looup icon.    Can any one help me out. Why this happen. And et me some quick solution.
I want to remove this highlighted one "Recently viewed cases" from that drop down when i am using apex:listViews

User-added image

Here is my code to map the fields and insert a Account and also opportunity whenever the status is Full Submission on lead. The lead should be automatically converted .
Here is my code .

trigger TriggerToConvertLEadAndCreateActAndOppo on Lead (after insert, after update) {
list<Account> lstAccountUpdate = new list<Account>();
list<Opportunity> lstOppUpdate = new list<Opportunity>();
set<id> Accountids = new set<id>();
if( trigger.isInsert){
  for(Lead Objlead : trigger.new){
   Account objacc;
   Opportunity opp;
   Database.LeadConvertResult lcr;
   list<LeadStatus> lstconvertStatus = [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true limit 1];
    if((Objlead.isConverted == false)&& (Objlead.Status == 'Full Submission'))
    {
      Database.LeadConvert lc = new database.LeadConvert();
       lc.setLeadId(Objlead.Id);
       //lc.setConvertedStatus('Converted');
       string strstatus='';
       if(lstconvertStatus != null && lstconvertStatus.size()>0 ){
               strstatus = lstconvertStatus[0].MasterLabel ;
           }
           lc.setConvertedStatus(strstatus);
           lcr = Database.convertLead(lc);
           Accountids.add(lcr.getAccountId());
         system.debug(':::::strstatus'+strstatus);
       system.debug(':::::lc'+lc);
       system.debug(':::::Accountids'+Accountids);
    }
    system.debug(':::::::::::Objlead.isConverted'+Objlead.isConverted);
    if((Objlead.isConverted)){
                 objacc = new Account(id=lcr.getAccountId(),
                                         Phone = Objlead.MobilePhone,
                                         Name = Objlead.Company);
    }
    lstAccountUpdate.add(objacc);
    system.debug(':::::lstAccountUpdate'+lstAccountUpdate);
  }
  if(lstAccountUpdate != null && lstAccountUpdate.size()>0)
         update lstAccountUpdate;
}

if(trigger.isUpdate ){
  for(Lead objL:trigger.new){
   Account objacc;
   if(objL.Status == 'Full Submission' && trigger.oldMap.get(objL.id).Status != trigger.newmap.get(objL.id).Status && trigger.oldmap.get(ObjL.Id).Status != 'Full Submission'){
    Database.LeadConvert lc = new Database.Leadconvert();
    lc.setLeadId(objL.id);
    lc.setConvertedStatus('Converted');
    if((objL.isConverted && objL.ConvertedAccountId != null)){
                 objacc = new Account(id=objL.ConvertedAccountId,
                                         Phone = objL.MobilePhone,
                                         Name = objL.Name);
    }
    lstAccountUpdate.add(objacc);
   }
  }
  if(lstAccountUpdate != null && lstAccountUpdate.size()>0)
         update lstAccountUpdate;
}
}

I am not entering into this snippet Where i am mapping some fields from lead to account. Here is the snippet.

system.debug(':::::::::::Objlead.isConverted'+Objlead.isConverted);
if((Objlead.isConverted)){
                 objacc = new Account(id=lcr.getAccountId(),
                                         Phone = Objlead.MobilePhone,
                                         Name = Objlead.Company);
    }

The above debug is always showing me as false. But i am converting the lead above this. Can you get me some working code.
My requirment is like  i have a opportunity and a lookup to this is a account. Where i have to display the account details with some 5-6 fields in opportunity detail page in side bar. 

How come i shall develop this or can i do this with any customization part?

On Opportunity Object I have 3 Picklist Fields with 3 users in each picklist filed. And the same related amount fields to the 3 picklist fileds. So wen we populate the least value in amount field,That value should be populated in all other fields.(This i have done through trigger )

 

So Now when i change the value in amount fields ,The related picklist fields which is having users in it should get a mail ,That the amount value is changed from 30 to 20 .

 

Please help me out , Its very urgent ......!!! 

  • April 25, 2013
  • Like
  • 0

My requirment is to send a PDF attachment of all contact details to the mail id which is entered in Email field on contactwhen the record is inserted or record is updated.

 

Plzzz help me out frnds ....!!!!

  • November 22, 2012
  • Like
  • 0
I have a Partner user Test1 ,He has 2 managers (Z1 and Z2), When he changes the owner opportunity to Z1 but he cannot change the owner to Z2. He is not getting the user in search results . Where he can assign the record to Z1 by searching in looup icon.    Can any one help me out. Why this happen. And et me some quick solution.
We've built a routine in Org 00Dd0000000c8w1 to send emails to outside recipients, with a CC to the Partner Portal User that launched it, that include attachments from an Opportunity along with details of that Opportunity.

This functionality has worked successfully for two years. However, we've begun to see intermittent issues where the email appears to be sent from within Salesforce, but the intended recipient and the Partner do not receive the email.

Frustratingly, it's happening intermittently and we can't reproduce it as Admins, even when we log in as that particular user.

Additionally, we have another emerging and intermittent issue with a DIFFERENT email function. This one is set up to send email to an outside recipient with a CC to the User / Partner who sent. These attachments are picked up from files in the the Documents section of Salesforce. Total attachments add up to less than 1MB in aggregate size.

In this scenario, the email comes over with with appear to be mangled attachments. The file titles are all correct, but the size is down to a few kb and no file extension appears. Neither sender (who is CC'd) nor intended recipient can open them.

As an Admin, when I test it, it works properly for me.
  • September 16, 2014
  • Like
  • 0
I want to remove this highlighted one "Recently viewed cases" from that drop down when i am using apex:listViews

User-added image

My requirment is like  i have a opportunity and a lookup to this is a account. Where i have to display the account details with some 5-6 fields in opportunity detail page in side bar. 

How come i shall develop this or can i do this with any customization part?