New function to fill ODT substitution array with extrafield of object