Class CreateOrUpdateLeadAction

java.lang.Object
org.apache.unomi.sfdc.actions.CreateOrUpdateLeadAction
All Implemented Interfaces:
ActionExecutor

public class CreateOrUpdateLeadAction extends Object implements ActionExecutor
Creates or updates a Salesforce lead from the corresponding Apache Unomi profile (using a common identifier field, usually the email address)
  • Constructor Details

    • CreateOrUpdateLeadAction

      public CreateOrUpdateLeadAction()
  • Method Details

    • setSfdcService

      public void setSfdcService(SFDCService sfdcService)
    • execute

      public int execute(Action action, Event event)
      Description copied from interface: ActionExecutor
      Executes a specified Action, given a triggering Event.
      Specified by:
      execute in interface ActionExecutor
      Parameters:
      action - the Action to execute
      event - the Event that triggered the action
      Returns:
      an integer status corresponding to what happened as defined by public constants of EventService