Vulnerability in EPiServer.Forms
I am trying to create a scheduled job that updates pricing infomation. When I run the job I can add new data using IPriceDetailService.Save(see below), but I am not sure how to update existing pricing data.
public IPriceDetailValue SavePriceDetailValue(Entry catalogEntry)
var priceDetailService = ServiceLocator.Current.GetInstance();
// Set Price Detail value for Catalog Entry.
var priceDetailValue = new PriceDetailValue
CatalogKey = new CatalogKey(catalogEntry),
MarketId = new MarketId("US"),
CustomerPricing = CustomerPricing.AllCustomers,
ValidFrom = DateTime.UtcNow.AddDays(-7),
ValidUntil = DateTime.UtcNow.AddDays(7),
MinQuantity = 0m,
UnitPrice = new Money(100m, Currency.USD)
Thank you in advance
Not possible to just use the List method to get the existing and then update them and then call save with the updated values as parameter?
...or am I missing something? :)
is possible to provide sample code of what you are refereing too? I am new to this.