Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to use ReportProcessorBase to construct a new datatable to hold xDB data for Sitecore's Experience Profile
public class ConstructSampleOrdersDataTable : ReportProcessorBase
{
public override void Process(ReportProcessorArgs args)
{
args.ResultTableForView = new DataTable();
args.ResultTableForView.Columns.Add(new ViewField<Guid>("ContactId").ToColumn());
args.ResultTableForView.Columns.Add(new ViewField<Guid>("VisitId").ToColumn());
args.ResultTableForView.Columns.Add(new ViewField<IEnumerable<KeyValuePair<string, string>>>("SampleOrder").ToColumn());
args.ResultTableForView.Columns.Add(new ViewField<string>("RangeId").ToColumn());
args.ResultTableForView.Columns.Add(new ViewField<string>("DecorId").ToColumn());
args.ResultTableForView.Columns.Add(new ViewField<int>("VisitIndex").ToColumn());
args.ResultTableForView.Columns.Add(new ViewField<DateTime>("VisitStartDateTime").ToColumn());
args.ResultTableForView.Columns.Add(new ViewField<DateTime>("VisitEndDateTime").ToColumn());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.