ActivityHelper DuplicateActivity Method Kentico 8.1 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.1.5347.20411)

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