+ Start a Discussion
Jayson Faderanga 14Jayson Faderanga 14 

Question on Event


I wrote a trigger that automatically adds an event invitees(User). It works fine on my enterprise edition trial Org so I created it on our Sandbox, I got the same code but it is not working on sandbox, I tried deploying it in production thinking that maybe because the user email address in sandbox is different but it is not also working in production.

on my debug, it shows it is working fine, I'm getting the invitees but it is not showing on the event. below is my code, I have custom settings on this.

User-added image

Best Answer chosen by Jayson Faderanga 14
Jayson Faderanga 14Jayson Faderanga 14
hi guys, I was able to find out the cause of this,

auto adding invitees won't work on unpublic event, we have workflow rule that automate the event to be visible on selfservice.

Thanks guys!