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
Atla MasthanaiahAtla Masthanaiah 

helpme

I have one profile. It contain A, B, C RecordTypes and two users( U1,  U2). one user (U1) access (A,  B , C)all record types and another user (U2) Not access (A, B) all record types.But User (U2) access ( C )  recordType how to achive it (Through Programing)

Thanks
Deepak Pandey 13Deepak Pandey 13
try like this -
if(enstant.user == 'u1')
{
  show all record type
}
else if(enstant.user == 'u2')
  if(recordtype.name !='a' || recordtype.name != 'b')
{
show then list.
}