How To specify a generic Send From email address from Workflow Notifications

By | September 28, 2022

In Sage X3, We have Signature Workflows that Provides us a feature of processing automatic signature for a record if the record is created or modified by the first level of the user present in the assignment rule. You will able to see the record signed and processed to second level user for signature in workflow history.

Typically, workflow is a trail of any business process from begining to end involving a lot of complicated steps. Workflow automation is a way in which these steps can be automated into one single process. All this leads to saving time, pacing up any business process, improving visibility and proper utilization of resources which is one of the biggest benefits of the Business Unit involved in ERP system.

When we mail using workflow the flow address is picked from the user record. But for one of our client’s they wanted a generic email address to be set as From email address and this can’t be achieved through SMTP. To set a generic from address we found an entry point AWRKMEL with action EMAIL where we can set hardcoded generic email addresses.

New Stuff: Quality Variance in Sage X3

Using the below code we can achieve send mail from generic email address:
$ACTION
Case ACTION
when ‘EMAIL’ : Gosub EMAIL
when Default
Endcase
Return

$EMAIL
EXP_EMAIL=’x3generic@x3domain.com’ ##Mention the generic email address here
Return

The call to the EMAIL entry point is carried out just after the opening of the command file used by the instruction meladx. The command file is still empty.

Entry point EMAIL : Is used to modify the sender of a message sent by the email server.
Variable EXP_MAIL : Contains the name of the sender.

This way we can set specific generic Send from email addresses from workflow notifications.