Skip to main content
Juhi Babbar a posé une question dans #Data Management
How can I make sure of following?

 

If owner is changed on Opportuntiy record, only allow Nicki smith or current owner to change it and profile (00e60000000imGt) should be exempt too.

 

thanks.
2 réponses
  1. 10 mars 2017, 14:31

    Juhi, get rid of ID's and use Names or developer names instead like this:

    AND(

    OwnerId <> PRIORVALUE(OwnerId),

      PRIORVALUE(OwnerId) <> $User.Id,

    PRIORVALUE(OwnerId) <> "Insert Nicole's user ID",

    $Profile.Name <> "Insert Profile Name to be excluded",

      $Profile.Name <> "System Administrator"

    )

    I always add System Administrator exclusions to such rules since they shouldn't be barred from changing owners.