Update sender address
Hi!
I want mass update sender and reply address for delivery templates.
But this information is only in XML memo.
So how I can do it? Via JavaScript or something else?

Hi!
I want mass update sender and reply address for delivery templates.
But this information is only in XML memo.
So how I can do it? Via JavaScript or something else?

Hello @mariakonstantinova1995 ,
if you want to programatically change sender information you need to create workflow where
example
var results = NLWS.xtkQueryDef.create(
{queryDef: {schema: vars.targetSchema , operation: 'select',
select: {
node: [
{expr: '@id'},
]
}
}}).ExecuteQuery()),
delivery;
for each (var w in results.getElements("query")){
delivery = NLWS.nmsDelivery.load(w.getAttribute('id'));
delivery.mailParameters.senderEmail ="newemail@example.com";
..
..
..
delivery.save();
}
query - in results.getElements('query') is the internal name of the query activity that is used to get all delivery templates
Marcel Szimonisz
MarTech Consultant
for more tips visit my blog
https://www.martechnotes.com/
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.