function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VarunCVarunC 

Before and After COUNT of related records

andresperezandresperez
:smileywink:Well, it actually depends :smileywink:
VarunCVarunC

Hey where is ALL the text that I typed in my post GONE :( ... why is it displaying my post as EMPTY :( ...

 

 

Ahh let me explain my issue again then:

 

Consider this:

 

I want to put a Check in my trigger on Event object such that I could detect and throw an error to User that Attendee removal is not allowed here. I want to Count the Attendees in Event Before, and the Number of Attendees at present, But SURET before because I do not want to Save the Event. That is the main issue. 

 

I want to detect the Attendee Number change in an event BEFORE event is Saved. How can I do this?