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
Jayson Faderanga 14Jayson Faderanga 14 

Question on Event

Hello,

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

Thanks!
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!