volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

AI OnAI Off

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.

#248705
Feb 16, 2021 10:23
Vote:

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

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

writeable.ExcludedCatalogItems = ...;

//save

#248706
Feb 16, 2021 10:46

that was it. thank you. happy belated new year

#248707
Feb 16, 2021 11:04
error 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.