I'm having some trouble getting info from the pipeline for the new-ish Sitecore Publishing Service in Sitecore 8.2.
We're getting the list of ModifiedFields from PublishEndResultBatchArgs. The problem is only the revision field is being returned. We are expecting a list of what was changed. See code. Any ideas? Thanks.
public class PublishBatchResultProcessor
{
public void Process(PublishEndResultBatchArgs args)
{
foreach (var result in args.Batch)
{
var fieldChanges = result.Metadata.FieldChanges;
//This gives me a collection with only one item - The revision field
}
}
}
Patch File:
<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<publishEndResultBatch>
<processor type="Foo.PipelineStuff.PublishBatchResultProcessor, Foo.PipelineStuff"
patch:before="*[@type='Sitecore.Publishing.Service.Pipelines.BulkPublishingEnd.RaiseRemoteEvents, Sitecore.Publishing.Service']" />
</publishEndResultBatch>
</pipelines>
</sitecore>
</configuration>