subscribe to Activity

Ivan Louw asked on June 5, 2019 09:29

Hi, In integration bus connector, I cannot subscribe to Activity object. I can't find 'ActivityInfo' Object type. Is there a way to send activities to connector? Or is there any other way to I can send all new activities to external webservice?

Regards, Ivan

Recent Answers


Dmitry Bastron answered on June 5, 2019 14:46

Hi Ivan,

The following construction works for me:

ActivityInfo.TYPEINFO.Events.Insert.Before += delegate(object sender, ObjectEventArgs args) {  };

Please check if you are referencing CMS.Activities library.

0 votesVote for this answer Mark as a Correct answer

Ivan Louw answered on June 6, 2019 03:17

Thanks Dmitry for your response. This is event, I am trying to capture Activity in integration bus connector. I have subscribe to following object but it does not capture new activities. Is there a way to subscribe to new activities in connector?

SubscribeToObjects(TaskProcessTypeEnum.AsyncSnapshot, ActivityInfo.OBJECT_TYPE, TaskTypeEnum.All);

I may be able to capture global event and store activity in custom table, then use connector to subscribe to this custom table. but this will be 2 step process. Can't I just subscribe to ActivityInfo?

0 votesVote for this answer Mark as a Correct answer

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