Adding Activity records via the API

Peter Karamitsos asked on October 31, 2019 14:05

I am in need of adding Activity records via the Kentico API. I was originally going to add them via the ActivityInfoProvider but then I came across the CustomActivityInitializerBase here.

What is the difference between using the two?

I mainly need to record Activities of the purchase activity type. The data being recorded will eventually be used in automated marketing tasks. Would one have a benefit over the other in this regard?

Recent Answers


David te Kloese answered on October 31, 2019 14:25

Well the biggest advantage of a custom one is that it's not being affected by anything other then your custom code.

It will not contain automatic activities by the system, and should be (more) immune to upgrade changes...

That being said, if you just want to log the purchase activity it could be nice if the system handles the default scenario's automatically for you.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.