cancel
Showing results for 
Search instead for 
Did you mean: 

Attaching a file into Service Contracts

Former Member
0 Kudos

Hi

I'm trying to attach a file to a service contract form. I'm using the Attachments2 object. Does anyone have an example of how to use the code?

I have tried different variations of the Attachments2 & Attachments2.Lines object and nothing seem to work.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

at first, check:

Administration -> System Initialization -> General Settings

folder "Path", whether you have the "Attachments Folder" filled in

so the SAP would know, where to store them

In "mail" object, the attachments are added via:

oMail.Attachments.Add oMail.Attachments.Item(oMail.Attachments.Count - 1).Filename = sAttaPath & sAttachFile

I think, in the ServiceContracts, it will be similiar.

Don't forget to copy the AttachmentFile into the "Attachments Folder" first. So the SAP could attach it.

PS: try it manually, at first, and then via code ...

Regards,

Jaro

Answers (0)