Just as with Sales Orders (Headers) you can have additional attributes on Sales Lines. And the concept is exactly the same as described in the above topic.

In code, check whether there is any SDK extension data linked to the current NCSalesLine, and process it if needed.
Below is a code example when an additional inscription value is parsed and stored on the NAV sales line.

LOCAL CreateSalesLine(NCSalesLine : Record "NC Sales Line";SalesHeader : Record "Sales Header";....)
NCSDKExtensionData.SETRANGE("Record ID",NCSalesLine.RECORDID);
    IF AttributeValue <> '' THEN 
        SalesLine.Inscription := COPYSTR(AttributeValue,1,MAXSTRLEN(SalesLine.Inscription));
  UNTIL NCSDKExtensionData.NEXT = 0;

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.