• sainath reddy 54
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Unable to create a new case member here:
public class opportunityteammembertask {
    public static void teamopptyt(list<opportunity> oppty){
        user u =[select id from user where alias =: 'sai'];
        list<opportunityteammember> opptyteam = new list<opportunityteammember>();
        for(opportunity op:oppty)
        {
            if(op.Amount >= 5000000){
                opportunityteammember tm = new opportunityteammember();
                tm.OpportunityId =op.id;
                tm.UserId=u.id;
                tm.TeamMemberRole='Channel Manager';
                //tm.OpportunityAccessLevel='Read/Write';
                   opptyteam.add(tm); 
            }
        } if(opptyteam.size() > 0){
            insert opptyteam;
        }
    }
}
 I'm getting this pop-up 
when am trying to create a task on workflows
and  tried   to allow the pop-up blocker in my browser
 but the Because of your browser settings, we need your permission to open null... in a new tab. To prevent this message from displaying in the future, disable your browser’s popup blocker.same error coming
 I'm getting this pop-up 
when am trying to create a task on workflows
and  tried   to allow the pop-up blocker in my browser
 but the Because of your browser settings, we need your permission to open null... in a new tab. To prevent this message from displaying in the future, disable your browser’s popup blocker.same error coming