Programmatically know where page is being published (preview/publish)
Hi There,
We have a custom workflow, which indexes a published page to Search Index (External). However when a user previews a page it indexes page to search index. We are already using `getAgentId` function from AgentConfig instance but Agent Config is always null even when both preview and publish replication agent instances are configured.
replicationAction.getConfig().getAgentId()
Using `Event` class's `getProperty()` returns all replication agent Ids
event.getProperty("agentIds")
Is there any other way to know which instance given page is being published to preview or publish