• devamit
  • NEWBIE
  • 0 Points
  • Member since 2009

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

Hi Guys,

 

I have stuck up on an issue in which requires your input.

 

I need to update the opportunity owner with Account Owner only when Keep manual flag is unchcecked. If flag is checked then even if Opportunity owner is changing, Account Owner will become opportunity Owner.

 

Please see the code below:

for

(Opportunity objopp: Trigger.new){

setAccountid.add(objopp.AccountId);

}

lstAcc = [ Select Ownerid,name fromAccountwhere id IN:setAccountid];

 

system.debug('lstAcc-->'+lstAcc);

 

/* Updating the Opportunity Owner with Account owner field */for(Opportunity objopp: Trigger.new){

 

if(objopp.Keep_Manual_Primary_Flag__c == false){

 

for(Accountobjacc: lstAcc){

 

if(objacc.id == objopp.AccountId ){

objopp.OwnerId = objacc.OwnerId;

setOwnerid.add(objopp.OwnerId);

system.debug('setOwnerid1--->'+setOwnerid);

}

}

}

}

 

Above code is working fine for insert operation but it's not working in Update operation when I am changing the owner from 'Change' link.

It was working before Winter 12 release.

 

Waiting for your feedback.

 

Hi,

 

Can anyone tell me how can we acheive to get a read receipt for a email. When ever mail is sent form salesforce to an user, read receipt must be received by the user who is sendign this email.

 

 

Thanks,

 

devamit 

Message Edited by devamit on 12-14-2009 10:05 PM

hi..

pageblocksection hide 

 

Message Edited by devamit on 10-13-2009 12:59 AM

hi..

pageblocksection hide 

 

Message Edited by devamit on 10-13-2009 12:59 AM