Creating Integration bus tasks from Marketing automation custom action

Tomáš Loun asked on May 30, 2024 13:30

Hello Everyone, I would like to enqueue messages to outgoing tasks of the Integration Bus from Marketing automation custom action in Kentico 13. I tried to create IntegrationTaskInfo and IntegrationSynchronizationInfo objects in the Execute method of AutomationAction and store them to the DB. They are correctly displayed in the Outgoing tasks table and I can click the synchronization button there to process them. They are as well processed when other Integration bus task arrives by the standard way.

Can I somehow start processing of enqueued messages that are created like this or is there any other way how to handle this issue?

Correct Answer

Brenden Kehren answered on June 4, 2024 15:12

How are you triggering that task to be synced after it's logged? Have you created this event handler which would trigger the sync of an item after it was logged? Specifically, you'd need to create this event handler IntegrationEvents.LogInternalTask.After.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Tomáš Loun answered on June 4, 2024 16:14

Thank you and yes, I am creating and filling IntegrationTaskInfo and IntegrationSynchronizationInfo, then I am retrieving the BaseIntegrationConnector by calling IntegrationHelper.GetConnector and finally I am calling BaseIntegrationConnector.ProcessInternalTask(IntegrationTaskInfo). It works. I am doing everything in ContactAutomationAction.Execute, I haven't created that event handler.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 4, 2024 16:17

There are 2 steps:

  1. Capture the event to log the task.
  2. Process the task.

Seems you've only done #1 above so far. When the task is logged to the Integration Bus, you then need to process it (#2 above). So create that global event handler for the logging of that task so it can be processed to your external system.

0 votesVote for this answer Mark as a Correct answer

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