Skip to main content
7 个回答
  1. 2019年10月18日 08:24
    Hi,

    Workflow

    1:-- You cannot create records.

    2:-- They currently can only result in a task, email, field update, or outbound message.

    3:-- They can only cross objects in a master detail relationship, from the detail to the master,

     and only for certain scenarios (all custom to custom objects, some custom to standard objects,

     and even fewer standard to standard)We can not perform Dml operation in workflowWe cannot query from database.

     

    4:-- Trigger can work across objects and where in you can query the object as well as you can do DMLs.

     

     

    Trigger

    1:-- Can do these things, but obviously using code.

    2:-- Often needed for roll-up type scenarios where roll up summary fields cannot be used.

    3:-- Often needed when a record needs to be created on a different objectWe can use 20 Dml operations 

    in trigger. Trigger can be used to invoke a webserive.

    4:- Trigger can work across objects and where in you can query the object as well as you can do DMLs.

    I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

    Thanks and Regards,

    Deepali Kulshrestha

    www.kdeepali.com
0/9000