MadhackerZA
10/17/2024, 8:58 AM// Get document from cache
_publishedContentQuery.Content(Constant.AvailablePricesDocumentGuid
)
//Logic to test if the data is still valid or must be updated
var doc = _ContentService.GetById(Constant.AvailablePricesDocumentGuid);
doc.SetValue("itemPrice", apiResponse.Price)
_contentService.Save(doc);
_contentService.Publish(doc,[]);Rachel D
10/17/2024, 10:08 AM_contentService.SaveAndPublish(doc)MadhackerZA
10/17/2024, 11:58 AMMadhackerZA
10/17/2024, 12:01 PMSiempreSteve
10/17/2024, 12:52 PMRachel D
10/17/2024, 1:04 PM