Activity Forums Salesforce® Discussions How can we control trigger to fire only for some users which share same profile?

  • How can we control trigger to fire only for some users which share same profile?

    Posted by Tanu on August 4, 2016 at 1:16 PM

    How can we control trigger to fire only for some users which share same profile?

    Himanshu replied 9 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Himanshu

    Member
    August 5, 2016 at 7:06 AM

    Hi Tanu,

    you can use UserInfo.getProfileId() method will give you the logged in user profile. Accordingly, you can implement conditions in your trigger code

Log In to reply.