November Happy Hour will be moved to Thursday December 5th.

Access the PromotionEngineSettings from Evaluate

Vote:
 

Hi all!

When we profiled parts of our site we noticed that the CollectionTargetEvaluator.GetApplicableCodes is pretty expensive. Therefore we want to wait with running it until we have to in the Evaluate method for a discount. However, some of our logic depends on GetApplicableCodes, depending on which RequestFulfillmentStatus is set in the PromotionEngineSettings. So we would greatly benefit from accessing 

PromotionEngineSettings.RequestedStatuses

within our Evaluate method. In our implementation, in the case that PartiallyFulfilled is requested, we need to run GetApplicableCodes, but 90% of the time we are only interested in Fulfilled only statuses.

So my question is: How can I access the promotionEngineSettings within the Evaluate method? Feels reasonable that it should be accessable from there, to be able to make the most performance efficient evaluations as possible. Maybe in PromotionProcessorContext?

Regards,
Joel Yourstone

#175724
Feb 28, 2017 14:10
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.