on ‎2019 Jul 19 7:12 PM
Hello All,
I have this Code:
SAPbobsCOM.Contacts oContacts = ((SAPbobsCOM.Contacts)(oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oContacts))); // get the Activity Object
oContacts.CardCode = CardCode;
oContacts.Activity = SAPbobsCOM.BoActivities.cn_Task;
oContacts.ActivityType = 1;
oContacts.Subject = "1";
oContacts.HandledBy = userId;
oContacts.Details = taskName;
oContacts.Notes = TaskDesc;
oContacts. => Here I need to add the Financial project but the related parameters does not shown the FIProject where I can add the value for it
Second thing how I can add value for any field (EX this one ""oContacts.CardCode = CardCode;"" But I need to give value using the DB Field Name if Possible ?!!!
oContacts.Add();
oCompany.Disconnect();
thanks in advance for all.
Request clarification before answering.
Hi Ahmad Al Saadi,
The only possible solution at this moment is to update the field via UI API if you do not want to handle it using UDF.
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.
You are right. oContacts object have not "Financial Project" properties. Maybe you can solve this problem with using UDF.
oContacts.UserFields.Item("U_FIPROJECT").Value = "NSI-C20000";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ahmad Al Saadi,
Unfortunately, this property (FIPROJECT Column) seems not available in the DI API yet.
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 ANKIT CHAUHAN,
How I can resolve this problem, do you have any alternative solution???
Hi Ahmad Al Saadi,
Can you share the screenshot about the field which you would like to use in DI API?
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 |
|---|---|
| 35 | |
| 26 | |
| 21 | |
| 4 | |
| 4 | |
| 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.