Description
Creates a business object.
Return Function
A SDKBiz object of the specified entity.
Parameters
Name | Description | Type |
entityName | The name of the entity, for example Clients is CL, Invoicing Documents is FT, Suppliers is FL, Purchases is FO | String |
Example
'The following example updates a customer record
Dim clBusinessObj as SDKBiz = SDK.Business.CreateBiz("CL")
'Gets the customer record to be updated
Dim myFilters as New FilterItems
MyFilters.Add(New FilterItem("no", Comparison.Equal, 1))
MyFilters.Add(New FilterItem("estab", Comparison.Equal, 0))
Dim myCL As ClVO = SDK.Query.getEntityData(Of clVO)(MyFilters).FirstOrDefault()
'Edit field
myCL.inactivo = 1
'Save record
dim message as List(Of MessageVO) = clBusinessObj.save(myCL)