Fired when a comment or forum reply is posted on a website, identified by the event id "newComment". Carries the posted comment text and the page URL it was posted on in its attributes map, along with the profile that posted it and the underlying post. When the comment is a reply to an existing comment, two events are fired: one for the replier (comment type REPLY_TO_COMMENT) and one for the original commenter (comment type COMMENT_REPLIED_TO), so both sides of the conversation can trigger notifications.

Group: Journeys

Implements: TriggerEvent, FunnelEvent


Properties

PropertyReturnsDescription
attributesMap<String,Object>Extra properties describing the event: comment (the posted comment text), pageUrl (the page the comment was posted on) and, when replying to an existing comment, parentComment (the text of the comment being replied to).
eventIdStringPersistence-friendly identifier for this event type.
leadProfileProfileThe profile associated with this event as a funnel lead, which is the profile that posted the comment.
postPostThe post (comment, forum question or forum reply) the comment relates to.
relatedLeadLeadThe existing lead associated with this event, if any.
sourceProfileProfileThe profile that posted the comment.
triggerItem1StringFirst trigger key value used by the trigger event system for matching. Holds the website's id.
triggerItem2StringSecond trigger key value used by the trigger event system for matching. Holds the comment type.
triggerItem3StringThird trigger key value used by the trigger event system for matching. Not used by this event.
triggerItem4StringFourth trigger key value used by the trigger event system for matching. Not used by this event.
triggerItem5StringFifth trigger key value used by the trigger event system for matching. Not used by this event.
websiteWebsiteThe website the comment was posted on.

Methods

getSourceProfile() · getEventId() · getWebsite() · getTriggerItem1() · getTriggerItem2() · getTriggerItem3() · getTriggerItem4() · getTriggerItem5() · getAttributes() · getLeadProfile() · getRelatedLead() · getPost()

getSourceProfile()

Returns: Profile

The profile that posted the comment.

getEventId()

Returns: String

Persistence-friendly identifier for this event type.

getWebsite()

Returns: Website

The website the comment was posted on.

getTriggerItem1()

Returns: String

First trigger key value used by the trigger event system for matching. Holds the website's id.

getTriggerItem2()

Returns: String

Second trigger key value used by the trigger event system for matching. Holds the comment type.

getTriggerItem3()

Returns: String

Third trigger key value used by the trigger event system for matching. Not used by this event.

getTriggerItem4()

Returns: String

Fourth trigger key value used by the trigger event system for matching. Not used by this event.

getTriggerItem5()

Returns: String

Fifth trigger key value used by the trigger event system for matching. Not used by this event.

getAttributes()

Returns: Map<String,Object>

Extra properties describing the event: comment (the posted comment text), pageUrl (the page the comment was posted on) and, when replying to an existing comment, parentComment (the text of the comment being replied to).

getLeadProfile()

Returns: Profile

The profile associated with this event as a funnel lead, which is the profile that posted the comment.

getRelatedLead()

Returns: Lead

The existing lead associated with this event, if any.

getPost()

Returns: Post

The post (comment, forum question or forum reply) the comment relates to.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.