Parameters in email template in D365F&O in x++

 Hi Viewers,

in general email template will be in html file where format already design. In html template we the values like %PO%.

on runtime this parameters will be replace by system values.

public void generateEmail(purchID _purchID)

{

    sysemailsystemTable emailSystemTable;

    sysEmailMessageSystemTable emailMessageSystemTable;

 emailMessageSystemTable = sysEmailMessageSystemTable::find(emailID,  defaultLanguage);

#define.PO('PO');

map templateTokens = new Map(Type::string, Type::String);

templateTokens.insert(#PO, _purchID);



}

Comments

Popular posts from this blog

In ax D365F&O post packing slip from shipment through code x++.

Multi select lookup in UI Builder class in D365F&O through x++ code.

Cancel Post packing slip from all Shipments in D365 F&O through X++