Pass record as argument to defaultValue function