... ... ... EncodeXML.AddFieldToValidationDoc(XMLDocValField,Job.FIELDNO("Bill-to Customer No.")); DecodeXML.ModifyRecord(XMLDocInHead,HeadRecordRef,XMLDocValField,DATABASE::Job, TRUE,FALSE,AdditionalValues[1],AdditionalValues[2]); //Validations.... HeadFieldRef := HeadRecordRef.FIELD(Job.FIELDNO("Bill-to Customer No.")); Customer.GET(HeadFieldRef.VALUE); HeadFieldRef.VALIDATE(Customer."No."); HeadRecordRef.MODIFY(TRUE); ... ... ...