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 8 years, 3 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.

Popular Salesforce Blogs

Popular Salesforce Videos