Skip to Content
0

Send email with attachment using B1 Service Layer

Nov 02, 2016 at 06:47 PM

89

avatar image

Hello Experts!

I want to send an email with an attachment using the Service Layer and the SBOMailer but when the email arrives it arrives without the attachment

If I do the same test using the DIAPI the emails arrive correctly with their attachments

My request is:

POST https://hanaserver:50000/b1s/v1/Messages
{
  "Subject": "Emali Subject",
  "Text": "Emali text",
  "Attachment": 76994,
  "RecipientCollection": [
    {
      "UserType": "rt_RandomUser",
      "NameTo": "User name",
      "SendEmail": "tYES",
      "EmailAddress": "email@email.com",
      "SendSMS": "tNO",
      "CellularNumber": "",
      "SendFax": "tNO",
      "FaxNumber": "",
      "SendInternal": "tNO"
    }
  ]
}

I have reviewed the OALR table and have noticed that the Attachment field has a problem with a slash

With the Service Layer the field is saved in this way:

\\hanaserver\b1_shf\ATTACHMENTS/FILENAME.XML

But with the DIAPI the field is saved in this way:

\\hanaserver\b1_shf\ATTACHMENTS\FILENAME.XML

The problem is in the last slash that is stored differently in each case

Is there any way to fix this problem?

Thanks in advance

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ralph Oliveira
Jul 05, 2017 at 10:18 AM
0

Service Layer handles attachments in a diferent way from DI API.

Please refer to

B1 Service Layer: Attachment manipulation

Share
10 |10000 characters needed characters left characters exceeded