Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!

Typology rule for erroring deliveries with no-authorized brands assigned.

Avatar

Level 2

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!

3 Replies

Avatar

Employee Advisor

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

Avatar

Level 2

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. 

Avatar

Administrator

Hi @Craig_Thonis,

Could you please help @sasaprova further with their query?

Thanks!



Sukrity Wadhwa