In this Video, We will see
How to add Marketing Document(Sales Order) via DI API on Form Data Event.
1-At the same time will see the use of BoBridge object to convert string to date(Very useful)
2-Different types of object in SAP Business One which can be Add and Update through DI API
2-How to set UDF value at Header table.
3-How to set UDF value at LineTable.
4-How to loop at DbLinedataSource
5-Use of GetNewObjectKey() method of Company Object
6-Use of GetNewObjectType() method of Company Object
7-Use of GetLastErrorDescription() method of Company Object
8-Use of GetLastErrorCode() method of Company Object
How to Update Marketing Document(Sales Order) via DI API on Form Data Event.
1-Use Of SetCurrentLine(index) method to update the line data of marketting document( Important to understand).
![](https://i.ytimg.com/vi/vhY7ntrZBW4/maxresdefault.jpg)