Added function to get a mapping from a record to field IDs.