Activity Forums Salesforce® Discussions When to use transient keyword in Salesforce?

  • Marziya

    Member
    October 5, 2020 at 2:30 pm
  • Shweta

    Member
    October 19, 2020 at 1:13 pm

    We can use the transient keyword to declare instance <em style="font-family: inherit; font-size: inherit;">variables that can't be saved, and shouldn't be transmitted as part of the view state for a <em style="font-family: inherit; font-size: inherit;">Visualforce page. We can also use the transient keyword in Apex classes that are serializable, namely in controllers, controller extensions, or classes that implement the <samp style="font-size: inherit;">Batchable</samp> or <samp style="font-size: inherit;">Schedulable</samp> interface.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos