Sometimes an incoming XML document may not contain sufficient information to allow you to insert certain data as a record.


To solve the problem of insufficient information, you can preassign the values of the fields for which you do not have data. You can do this in the Import::OnAfterInitRecord and Import::OnBeforeInsertRecord triggers. If, for example, you receive an XML sales order document that does not contain Line No. information, you can assign a value for it by adding the following lines.

  CopyCode imageCopy Code
If not SL.Line No. then
SL.Line :=1001;

See Also