schedule example with automatic retrieval of referenced records