2 weeks ago
How to create Activity and Return Activitycode after add Success use DIAPI Using SDK ?
Hi nitmanet168,
You can use the following sample code:
SAPbobsCOM.ActivitiesService ActivitiesService = (SAPbobsCOM.ActivitiesService)oCompany.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.ActivitiesService);
SAPbobsCOM.Activity activity = (SAPbobsCOM.Activity)ActivitiesService.GetDataInterface(SAPbobsCOM.ActivitiesServiceDataInterfaces.asActivity);
SAPbobsCOM.ActivityParams oActParams;
activity.CardCode = "C20000";
activity.Details = "Test DI";
oActParams = ActivitiesService.AddActivity(activity);
var ActCode = oActParams.ActivityCode;
Variable ActCode will contain the newly added Activity Code.
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.
User | Count |
---|---|
101 | |
9 | |
7 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.