I'd like to see a different behavior with the script step Go To Related Record. If there are no related records available, the script step should still change to the selected layout but without having any records selected (Get(FoundCount) = 0).This would be a more consistant (and expected) behavior.
It might stop a beginners nightmare like this. He writes:
- Go To Related Records
- Delete All Records
- Go To Layout [original layout]
It works fine, until he runs the script in a master record without any related records … Good by records in the master table.