1

On Account I can run a query like so:

Select Id, UserRecordAccess.HasEditAccess FROM Account

and this would give me the information about user's access to the record in a single query.

However, if I run the same against Event I get an error

SELECT Id, UserRecordAccess.HasEditAccess FROM Event

Didn't understand relationship 'UserRecordAccess' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.

Is there any way to query it in one go?

2
  • 1
    Select Id, UserRecordAccess.HasEditAccess FROM Account - this shouldn't be possible - where's the doc that supports this?
    – cropredy
    Apr 1, 2022 at 21:07
  • @cropredy no idea re: docs, it just works.
    – zaitsman
    Aug 17, 2022 at 4:56

1 Answer 1

0

This is a little late to the party, but certain system objects do not have the UserRecordAccess relationship. Task and Event are a couple of them.

1
  • Yeah, that's what my first post basically says. The question was not is it supported. The question was Is there any way to query it in one go?
    – zaitsman
    Aug 17, 2022 at 4:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .