Skip to main content

LeadHandler

  • Namespace: PPDS.Migration.Import.Handlers
  • Assembly: PPDS.Migration
  • Kind: Class
  • Implements: IRecordTransformer, IStateTransitionHandler

Summary

Handles state transitions for lead records. Qualified leads use QualifyLead with suppressed side-effects; disqualified leads use SetStateRequest (null SdkMessage).

Members

Methods

CanHandle

bool CanHandle(string entityLogicalName)

Determines whether this transformer applies to the given entity.

  • Param entityLogicalName: The entity logical name.

  • Returns: True if this transformer handles the entity.

GetTransition

StateTransitionData GetTransition(Entity record, ImportContext context)

Gets the state transition data for a record, or null if no transition is needed.

  • Param record: The record to evaluate.

  • Param context: The import context.

  • Returns: The state transition data, or null.

Transform

Entity Transform(Entity record, ImportContext context)

Transforms a record before import.

  • Param record: The record to transform.

  • Param context: The import context.

  • Returns: The transformed record.