cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How I can add Financial Project on Activity Using SAP Business One SDK

0 Likes
1,108

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Likes

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

former_member595093
Participant
0 Likes

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";
0 Likes

I need any way to map it directly to the FIProject specially I don't want to use UDF for it.

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Likes

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

0 Likes

Hi ANKIT CHAUHAN,

How I can resolve this problem, do you have any alternative solution???

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Likes

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

0 Likes

Hi ANKIT CHAUHAN

This is the Field in the Activity.