ActivityHelper DuplicateActivity Method Kentico 8.0 API Reference
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.0.0.0 (8.0.5239.26125)

Parameters

ai
Type: CMS.OnlineMarketing ActivityInfo
Duplicate this activity
contact
Type: CMS.OnlineMarketing ContactInfo
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