Hi Brendon unfortunately that still doesn't solve the problem.
We need to do the field change detection on publish, so the Publish_Before and Publish_After handlers must be the relevant ones to use.
The methods you've highlighted exist on the Document property, but there's no Node property.
In the following code beforeCol/afterCol are always null regardless of the page selector field's value.
private void Publish_Before(object sender, WorkflowEventArgs e)
{
if (e.Document.ClassName == LandingPage.CLASS_NAME)
{
string beforeCol = e.Document.GetOriginalValue(nameof(LandingPage.Fields.SelectedPage)) as string;
string afterCol = e.Document.GetValue(nameof(LandingPage.Fields.SelectedPage)) as string;
...
}
}
private void Publish_After(object sender, WorkflowEventArgs e)
{
if (e.Document.ClassName == LandingPage.CLASS_NAME)
{
string beforeCol = e.Document.GetOriginalValue(nameof(LandingPage.Fields.SelectedPage)) as string;
string afterCol = e.Document.GetValue(nameof(LandingPage.Fields.SelectedPage)) as string;
...
}
}