Activity Forums Salesforce® Discussions When do we use SECURITY_ENFORCED in SOQl query and what is the need of using it?

  • When do we use SECURITY_ENFORCED in SOQl query and what is the need of using it?

    Posted by Anuj on August 18, 2020 at 12:57 pm

    When do we use SECURITY_ENFORCED in SOQl query and what is the need of using it?

    Anjali replied 4 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Anjali

    Member
    August 18, 2020 at 2:04 pm

    Use the WITH SECURITY_ENFORCED clause to enable field- and object-level security permissions checking for SOQL SELECT queries in Apex code, including subqueries and cross-object relationships.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos