Skip to Content

Email Via ABSL Not Arriving

Feb 12 at 04:29 PM


avatar image


I've been following a blog on here, trying to get an email sent to myself via ABSL and it's not arriving, despite the test email (from business config) arriving. My code's as below, with identifiers such as the email addresses obfuscated:

import ABSL;
import AP.FO.Activity.Global;
import AP.Common.GDT as gdt;
import BASIS.Global;
import DocumentServices.Global;

var elementsofEmailActivity: elementsof EmailActivity;
var newEmail;

//EmailActivity: define party node.
var elementsofEmailActivityParty: elementsof EmailActivity.Party;
var instParty;
var textCollectionTypeCode = "10002";
var elementsofTextCollectionText: elementsof EmailActivity.TextCollection.Text;
var elementsofTextContent: elementsof EmailActivity.TextCollection.Text.TextContent;
var newTextCollection;
var newTextCollectionText;

//elementsofEmailActivity.Name.content = "Customer Invoice"; //The email subject.
//elementsofEmailActivity.Name.content = this.EmailSubject.Concatenate(" (Invoice ").Concatenate(this.InvoiceNumber.content.RemoveLeadingZeros()).Concatenate(")");
elementsofEmailActivity.Name.content = "Testing";
newEmail = EmailActivity.Create(elementsofEmailActivity);
elementsofEmailActivityParty.PartyKey.PartyID.content = ""; //The email address where you want to send it.
newEmail.MessageFromParty.PartyKey.PartyID.content = "";
var employeeResponsibleParty = newEmail.EmployeeResponsibleParty;
if (!employeeResponsibleParty.IsSet())
if (employeeResponsibleParty.IsSet())
    employeeResponsibleParty.PartyKey.PartyID.content = "7000001";


What's going wrong? The domain '' has been added to the list of sending domains allowed in E-mail and Fax Settings. My email address is the one used for all output in the system. If I send a test email it arrives, but not my one. What's going on?


10 |10000 characters needed characters left characters exceeded

Bump. Does anyone have any ideas?

* Please Login or Register to Answer, Follow or Comment.

1 Answer

Benny Huang Feb 28 at 12:56 AM

Hi Lewis,

The BO EmailActivity, we just can do send email from the login user.

newEmail = EmailActivity.Create(elementsofEmailActivity);
elementsofEmailActivityParty.PartyKey.PartyID.content = "8000000021";     //To email partner ID
newEmail.MessageFromParty.PartyKey.PartyID.content = "8000000000";    //login user partner ID

Another way: use the Mail.Send, it can set the "From" and "To" email address.

Best Regards,

Benny Huang

Show 1 Share
10 |10000 characters needed characters left characters exceeded


Yeah, I tried that, still no luck. I've got it to the point where no error message are appearing, but it's still not working. It's currently with SAP, but they're taking an age to come back with anything.