
2 respostas

Hi,Thanks for the help.I have replaced the line. Could you please confirm that I have replaced correct line.BEFORE:} public PageReference DeleteTeamMember() { oppid = ApexPages.currentPage().getParameters().get('id'); // system.debug('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'+SelectedOppTeamId); OpportunityTeamMember__c tobeDeleted = null; OpportunityShare oppShare; for(OpportunityTeamMember__c a : oppTeam) if (a.Id == SelectedOppTeamId) { tobeDeleted = a; oppShare = [select id,OpportunityId, UserOrGroupId from OpportunityShare where OpportunityId = :oppid and UserOrGroupId = :a.User__c]; //system.debug('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'+tobeDeleted); //break; }AFTER: } public PageReference DeleteTeamMember() { oppid = ApexPages.currentPage().getParameters().get('id'); // system.debug('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'+SelectedOppTeamId); OpportunityTeamMember__c tobeDeleted = null; List<OpportunityShare> oppShare; for(OpportunityTeamMember__c a : oppTeam) if (a.Id == SelectedOppTeamId) { tobeDeleted = a; oppShare = [select id,OpportunityId, UserOrGroupId from OpportunityShare where OpportunityId = :oppid and UserOrGroupId = :a.User__c];