set metadata identifier in external field