Click or drag to resize
ActivityHelperDuplicateActivity Method
Duplicates record in Activity table and all related tables if required. Keeps ActivityGUID same.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax
C#
public static ActivityInfo DuplicateActivity(
	ActivityInfo ai,
	ContactInfo contact
)

Parameters

ai
Type: CMS.OnlineMarketingActivityInfo
Duplicate this activity
contact
Type: CMS.OnlineMarketingContactInfo
Optional. Contact which will be used for ActivityActiveContactID and ActivityOriginalContactID. If not specified then original values will remain

Return Value

Type: ActivityInfo
Duplicated activity
See Also