I have a validation rule that prevents re-opening case after a certain period has passed. But we'd like a Connection User from a partner org to be exempt from this rule. The problem is, how can refer to the Connection User or the partner org in my validation rule? The Connection User isn't a real user per se, has no role, nor profile.

Are my only options to mark these cases with a trigger on insert time and use that to refer whether this is an external or internal case?

  • 1
    – sfdc
    Commented Jun 6, 2014 at 11:00
  • Thanks for that. Hadn't stumbled into that solution before. Bit perplexing that this is an idea, yet contains a workaround. Some of the stuff in that post is already implemented, like the status page on the Partner connection.
    – akarnid
    Commented Jun 6, 2014 at 12:21
  • Here's a bunch more tips on S2S cropredysfdc.com/2014/11/17/… (written by me) with an alternative way of identifying the Connection User
    – cropredy
    Commented Dec 4, 2014 at 1:00

1 Answer 1


If you use Roles in your org, try excluding users that don't have a role ($UserRole.Name <> "" ). This seems to work for us (for now, at least).

You must log in to answer this question.

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