Skip to main content

Hi,

Restriction Rules seems to be a very powerful tool to restricts events. I already did some tests with it and it looks quite good. 

Anyway, I'm able to set a recordFilter (in Events) to a normal custom field, but I'm not able to do that on a checkbox which is type formula. Doesn't matter what I set in the formula, none of the events is shown to any active User (except Admins with ViewAll permission).

i.e.  IF($User.Id = Owner:User.Id,TRUE,FALSE)

Any advice on that?

14 comments
  1. Apr 23, 2021, 3:02 PM
    @Larry Tung

    Thank you for the alternative approach - it's working great for our needs. I still think it would be nice if this could work against formula fields to be able to accommodate permission sets but this will work for our use case. Thanks again. Here's our final rule:

    {

    "FullName":"TaskABCRestriction",

    "Metadata": {

    "active":true,

    "description":"A restriction rule that only allows non-ABC Users to access non-ABC tasks",

    "enforcementType":"Restrict",

    "masterLabel":"Task ABC Restriction Rule",

    "recordFilter":"ABC__c=false",

    "targetEntity":"Task",

    "userCriteria":"$User.ABC_Access__c=false",

    "version":1

    }

    }

0/9000