The project I am currently working on requires that content created by members of a content authoring team is approved by a review team in order to publish - this is achieved by a workflow.
I have a requirement that when the reviewer either approves or rejects an item of content, the original author is emailed to tell them that this has happened.
There is an extended email action in place that fires when the reviewer approves or rejects the content, but I am struggling to work my way back from the Item passed in by the WorkflowPipelineArgs
to the email address of the original creator - Item.Statistics.CreatedBy
returns an empty string.
Web searching has proved fruitless. Can anyone advise?
This is Sitecore 8.1
Thanks.
Created By
is populated and I would suggest to make use of theUpdated By
instead ofCreated By
since the content may be edited by another user. Moreover, try to use something like thisitem.Fields["__Created by"].Value