• NirAdmin
  • NEWBIE
  • 25 Points
  • Member since 2009

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Can anyone tell me why the IsGroupEvent field on the Event object is always false in the After Insert/Update Trigger.  I am trying to perform logic only on events that are not group events.  This field is always false no matter what type of event I create.

trigger trgEvent on Event (after insert, after update) { if (Trigger.isAfter) { for(Event newRec : Trigger.new) { System.debug('Group Event: ' + newRec.isGroupEvent); //this is always false if (!newRec.isGroupEvent) //not working { } } } }

 

  • April 17, 2009
  • Like
  • 0
Can anyone tell me why the IsGroupEvent field on the Event object is always false in the After Insert/Update Trigger.  I am trying to perform logic only on events that are not group events.  This field is always false no matter what type of event I create.

trigger trgEvent on Event (after insert, after update) { if (Trigger.isAfter) { for(Event newRec : Trigger.new) { System.debug('Group Event: ' + newRec.isGroupEvent); //this is always false if (!newRec.isGroupEvent) //not working { } } } }

 

  • April 17, 2009
  • Like
  • 0

Hi,

 

I've a custom application where I add users in bulk to account team. First the application bulk inserts all the records in account share object and then insert all those records in account team but few times while adding the records to account team for few records I am getting the following error:

 

"unable to obtain exclusive access to this record"

 

Can some one help me regarding this, according to my knowledge this error occurs when locking happens i.e. when a respective record is modified simultaneously by 2 processes.

 

Your help is appreciated.

 

Regards,

Rani

  • March 02, 2009
  • Like
  • 0