• Project tcs
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi Guys,

I have a custom button, in that button i am querying the record from UserRecordAccess  object using AJAX script to know the current user is having the edit access or not  on the particular record.
If user is having the edit access then only i am doing some operations. It is working fine as a system admin. but when the end user click on the button it is showing error Invalid Type sobject.
 
It is not working for the running users. please suggest on this. Other than the UserRecordAccess object, is there any other way to know the record access.

Thanks,
Krish