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
ram_devram_dev 

particular user not create the case in trigger

Hai,

i have a trigger which generates the case whenever some fileds are updated. Case not be generated for particular type of user(user1)update the fields. How can that particular user not going to be create case.

SabrentSabrent

Check the user's permissions.

Avidev9Avidev9
Are you getting any error?
Do you have any exception handling in place ? If yes check the debug logs.

And as rov mentioned check the user permission on object and also check the FLS for all the fields that are in context
ram_devram_dev

Hi,

 

Thankyou very much. it got resolved by using Userinfo.getName().

 

 

Thankyou