Try our conversational search powered by Generative AI!

can't seem to exclude items from a promotion v13


I pulled up the promotionData I want to modify.

I notice the IsReadOnly property is true and I can't add or create the ExcludedCatalogItems List.

I get this error if I try to make a new List

The property ExcludedCatalogItems is read-only

How do I go about adding/modifying the excludedCatalogItems.

How do I go about resolving this? I'm guessing I need to change IsReadOnly to false but unsure how.

thank you.

Feb 16, 2021 10:23

DId you create a writeable clone for the promotion first? something like

var writeable = promotion.CreateWriteableClone<PromotionData>();

writeable.ExcludedCatalogItems = ...;


Feb 16, 2021 10:46

that was it. thank you. happy belated new year

Feb 16, 2021 11:04
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.