Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pulls apart a Sitecore DataSourceQuery to enter the data into the DataTable for the Experience Profile
public class FillGoalDescription : ReportProcessorBase
{
public override void Process(ReportProcessorArgs args)
{
DataTable resultTableForView = args.ResultTableForView;
Assert.IsNotNull(resultTableForView, "Result table for {0} could not be found.", new object[] { args.ReportParameters.ViewName });
int i = 0;
foreach (DataRow row in resultTableForView.AsEnumerable())
{
var goalData = args.QueryResult.Rows[i].ItemArray[4];
if (goalData != null)
{
row[Schemas.GoalDescription.Name] = goalData;
}
i++;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment