Activity info in the marketing automation condition

Dmitry Bastron asked on August 16, 2017 07:08

Hi all!

I'm setting up the marketing automation process which triggers based on Activity. Is there any possibility to get the information about that activity (for example, ActivityItemID field) in the Condition block's macro?

Image Text

In th macro rule editor I've tried to use "Activity", "ActivityItemID", "Activity.ActivityItemID" but all returns null.

Correct Answer

Dmitry Bastron answered on August 21, 2017 07:40

@Rui Wang Thanks, but I know that. I'm triggering already the process based on activity. I need to use the activity data inside the macro in the conditional block in the process.

I've found some solution for that. Kentico fills these special fields which can be used in the macro:

AutomationState.StateCustomData["TriggerDataActivityItemDetailId"]
AutomationState.StateCustomData["TriggerDataActivityItemId"]
AutomationState.StateCustomData["TriggerDataActivityValue"]
AutomationState.StateCustomData["TriggerDataActivitySiteId"]
0 votesVote for this answer Unmark Correct answer

Recent Answers


Rui Wang answered on August 17, 2017 19:36

0 votesVote for this answer Mark as a Correct answer

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