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
RajManiaRajMania 

Trigger on user behaving differently

I have written a trigger on User, but it gives me always false for the fields for Old and New both. Is any exception to the field 'UserPermissionsMobileUser' .

 

for(user a: Trigger.old){

System.debug('old Tets****'+a.UserPermissionsMobileUser);
System.debug('old Tets###'+a.UserPermissionsSFContentUser);
}

 

Thanks.

Raj

RajManiaRajMania

even I uncheck the checlbox  'UserPermissionsMobileUser' from check, the old value showing as false, while the query result showing perfectly in apex explorer

for(user a: Trigger.old){

System.debug('old Tets****'+a.UserPermissionsMobileUser);
System.debug('old Tets###'+a.UserPermissionsSFContentUser);
}