Thank Dmitry,
I found a good solution. After asking this question, I found out I can write a custom DeliveryBuilder
which can copy the neccessary data from the CalculationRequest
object:
[assembly: RegisterImplementation(typeof(IDeliveryBuilder), typeof(CustomDeliveryBuilder))]
public class CustomDeliveryBuilder : DefaultDeliveryBuilder
{
protected override void InitCustomData(CalculationRequest request)
{
base.InitCustomData(request);
request.RequestCustomData.ColumnNames.ForEach(column => SetCustomData(column, request.RequestCustomData[column]));
}
}
I hope this will also help others who have the same issue.