Hi all,
as per object I'm trying to create a new typology rule that will raise an error in case of sending deliveries with not-authorized brands.
Since the "Filtering" typology rule will filter only consumers, without raising errors, I need to create a new typology rule with Control type.
Is it possible to write a JS code that will check for brands of deliveries? And in case, how should it be written?
Thanks in advance!
Views
Replies
Total Likes
Hello Sasaprova,
In ACS control type rules cannot be created quickly, but they can be made. You will need to export an existing out-of-the-box control rule, then modify the XML and rename it. Once the rule has been changed, you can import it back into ACS, which will create the desired control rule typology.
Regards,
Craig
Hi Craig,
thank you so much for your answer!
Yes, I know that part and that's exactly what I'm doing right now. The problem is that I don't have any idea of how to access the brand of the delivery via JavaScript, in order to evaluate some conditions on it (e.g: controlling that is not equal to specific brand names).
Do you know how to do it?
I know that some OOB typology rules are using these pieces of code for accessing variables such as the subject of the delivery
var strSubject = emailContent.subject.source; (where emailContent =
for (var i = 0; i < delivery.content.email.length; i++) {
var emailContent = delivery.content.email[i];
var strSubject = emailContent.subject.source;)
But I'm not able to write a code able to retrieve the brand of the delivery that is going to be sent.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies