Hi Luc,
You can get the discount list applied on your basket :
For each DiscountApplicationRecord you can get the detailled information with this cast : Discount discount = (Discount) marketingContext.Campaigns.GetCampaign(discountApplicationRecord.DiscountId) and check the discount.Condition.ConditionExpression and discount.AwardExpression for know if your discount contains a free product and add it to your basket.
Hi Luc,
I went through your post. My requirement is identical to this.
But you have post the code incorrect. GetCampaign function received CampaignID as the paramter, not the discount id. Could you please post the write code to get the Discount object based on the available discountApplicationRecord.DiscountId property.
Please respond to this code ASAP.
Nazim