on 07-17-2023 11:27 AM
Hi nitmanet168,
Use the following sample code:
var ActivitiesService = (SAPbobsCOM.ActivitiesService)oCompany.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.ActivitiesService);
SAPbobsCOM.Activity activity = (SAPbobsCOM.Activity)ActivitiesService.GetDataInterface(SAPbobsCOM.ActivitiesServiceDataInterfaces.asActivity);
activity.CardCode = "C20000";
activity.Details = "Test DI";
activity.DocEntry = "1344";
activity.DocTypeEx = "15";
activity.UserFields.Item("U_TEST").Value = "TEST";
ActivitiesService.AddActivity(activity);
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi thiago_moura,
DI API provides an interface to the company database of SAP Business One, enabling data manipulation.
This is possible via DI API Services, Objects, and Public Enumerations.
Few objects are exposed under BoObjectTypes enumeration and few complex objects are exposed under ServiceTypes Enumeration.
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
User | Count |
---|---|
87 | |
9 | |
7 | |
6 | |
6 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.