XMLport Document With Insufficient Information

Microsoft Dynamics Nav 2009

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

Example

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.

If not SL.Line No. then
SL.Line :=1001;

See Also

Community Additions

ADD
Show: