Skip to Content

How to assign an attachment to a service call object?

Hi All,

Regarding the service call object:

SAPbobsCOM.ServiceCalls SC = (SAPbobsCOM.ServiceCalls)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oServiceCalls);
// ServiceCallID is the Service Call ID // AttachmentKey is the key saved in attachment table ATC1
SC.GetByKey(Convert.ToInt32(ServiceCallID)); SC.AttachmentEntry = AttachmentKey; // There is no AttachmentEntry property in service call object int ErrCode = SC.Update(); The problem here that there is no AttachmentEntry property in service call object to assign the attachment. I know that there is a way to assign attachment to service call activity but I want to add attachment directly to service call document Is there another way to implement that? Your quick help is really appreciated Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 23, 2016 at 12:27 PM

    Hi Shuqair,


    There is a property AttachmentEntry on the ServiceCalls. I use SAP B1 9.1 PL 12.

    What is the version of your DI API?


    Best regards,

    Diego Lother


    View Diego Lother's profile on LinkedIn


    img.PNG (7.3 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.