Lamont
06/21/2024, 3:08 AMvar rootProperty = notification.Content.Variants.FirstOrDefault()?
.Tabs.SelectMany(f => f.Properties ?? [])
.FirstOrDefault(f => f.Alias.InvariantEquals("region"));
if (rootProperty?.Value is not BlockValue blockList) { return; }
foreach (var block in blockList.ContentData.Where(block => block.ContentTypeKey == Constants.RCGuid))
{
// using block.PropertyValues seems to affect nothing
// this removes the selected value of the property...
block.RawPropertyValues.Remove("reuseContent2");
}
Dean Leigh
06/21/2024, 7:12 AMLamont
06/21/2024, 2:22 PMDean Leigh
06/22/2024, 12:58 PMLamont
06/22/2024, 7:19 PMDean Leigh
06/22/2024, 7:58 PMJamie T
06/23/2024, 7:13 AMLamont
06/23/2024, 2:39 PMMatt Wise
06/24/2024, 5:53 AMLamont
06/24/2024, 3:13 PM