Skip to main content
Chakra Varthi Konreddy (Salesforce) 님이 #Apex에 질문했습니다
1.Triggers VS workflows, what is the complexity involved between triggers and workflows related to trigger's order of execution?

2.can we call a batch apex through trigger?
답변 1개
  1. 2015년 6월 8일 오후 3:44
    Here is the quick snikpick:

    Workflow:

    - You cannot create records

    - You can create a task, send an email, do a field update, send an outbound message

    - We can perform operation on one object only

        

    Trigger:

    - Any complex logic executions required on all DML actions

    - You can create all kinds of records and perform operations on different objects

    ⌗2: Yes, you can call batch apex. Also if method which calls batch need to be with @future annotation.

    Hope this helps! If yes, then mark it as solution.

    Thanks,

    Sumit
0/9000