Skip to main content

Olá, tudo bem?

 

Eu estou com dificuldade em entender de fato como funcionam as classes e triggers. Alguém pode me ajudar?

 

Obrigado

 

#Trailhead Challenges

1 respuesta
  1. 29 mar 2024, 09:03

    Hello! What are your main doubts to answer your properly?

    A class in apex is the same that in more programming languages.

    A trigger is something that trigger code based on an event that occurs on a Sobject or event (before,after, delete, undelete, update, insert, upsert,...), normally another class as a handler and is recommendable use only a trigger per object.

    Check this doc:

    Apex classes:

    https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_understanding.htm

    Triggers:

    https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers.htm

    Regards!

0/9000