EventExecute permissions of an entity is not able to set through service
Hi All,
I am trying to apply runtime permissions through a service. The code snippet was working fine in one environment, but when I import the same service in another environment, the permissions are not applying. Specially, all other permissions apply except for EventExecute.
Here is the shared working code snippet:
Working code:
Could anyone suggest why the EventExecute permissions specifically might be failing to apply after the environment transfer? Are there any prerequisite settings for event permissions that might be missing in the environment?
Thanks in advance for the help!

