Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

how to insert Multi-line mapping in sysEmailTable::sendMail

$
0
0

If I want to use the sysEmailTable, how can I put a string as mapping into the sysEmailTable::sendMail if the string has multiple lines (\n).

Code so far:

static void createEmail(Args _args)
{
    Map             mappings;
    str             s;
    ;
   
    s=strFmt('%1\n%2\n', "line 1,line 2");

    mappings = new Map(Types::String, Types::String);
    mappings.insert('abc', s);

    sysEmailTable::sendMail('test', 'NL', 'test@test.com', mappings);
}

The currrent output in outlook message body is:

line1line2

I would like It to be:

line1

line2


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>