Table of Contents

Class ContactAccountAction

Namespace
CMS.ContactManagement
Assembly
CMS.ContactManagement.dll

Class for Change contact account action

[Obsolete("Class is deprecated and will be removed in next version.")]
[ObsoleteSince(29, 7)]
public class ContactAccountAction : ContactAutomationAction
Inheritance
object
BaseWorkflowAction<BaseInfo, AutomationStateInfo, AutomationActionEnum>
AutomationAction
ContactAccountAction
Inherited Members
Extension Methods

Properties

Account

Account info object

protected virtual AccountInfo Account { get; }

Property Value

AccountInfo

AccountGUID

Account identifier.

public virtual Guid AccountGUID { get; }

Property Value

Guid

ContactAction

Gets current action - 0 for ADD TO, 1 for REMOVE FROM account.

public virtual int ContactAction { get; }

Property Value

int

Role

Role info object Null value possible

protected virtual ContactRoleInfo Role { get; }

Property Value

ContactRoleInfo

RoleID

ID of role

protected virtual int RoleID { get; }

Property Value

int

RoleName

Contact role identifier.

public virtual string RoleName { get; }

Property Value

string

Methods

Execute()

Executes current action

public override void Execute()

SetAccountContactRelation()

Inserts or updated relation between contact and account

protected void SetAccountContactRelation()