Expand my Community achievements bar.

Change default value in denylisted address check [targets/@useBlackList]

Avatar

Level 2

Hi everyone,
I'm trying to change the default value of the denylisted address check to "unchecked" (no) in Adobe Campaign deliveries, so that new deliveries have it unchecked by default.

Could you please help me find how to do that? I'm having trouble locating the field definition, and it seems that a mass update cannot be applied to those "target" fields.

 

 

 

5 Replies

Avatar

Level 4

@JorgeTo1,

Modify the Delivery Template:

The simplest and most practical way to change the default behavior for new deliveries is to update the delivery template(s) used to create them. Delivery templates inherit properties to new deliveries, so setting useBlackList to "no" in the template will ensure all new deliveries start with it unchecked.

  • Locate the Delivery Template:
    • Go to Campaign Management > Deliveries in the Adobe Campaign Explorer.
    • Find the default template(s) used for creating new deliveries (e.g., "Email delivery" or a custom template). Typically, this is under Resources > Templates > Delivery Templates.
  • Edit the Template:
    • Open the desired template by double-clicking it.
    • Go to the Delivery tab in the template properties.
    • Under the "Delivery" section, look for the "Exclude denylisted addresses" checkbox (this corresponds to targets/@useBlackList).
    • Uncheck the box to set it to "No".
    • Save the template.

Let me know if this works?

Thanks

Sushant Trimukhe

@JorgeTo1,

Second option would be Use a Typology Rule (Dynamic Control)

If you want more flexibility without modifying templates or schemas permanently, you can create a typology rule to dynamically set useBlackList to "no" during delivery preparation.

Create a Typology Rule:

  • Go to Administration > Campaign Management > Typology Management > Typology Rules.
  • Create a new rule of type "Control" with execution set to "At the start of targeting".
  • Add the following JavaScript code in the rule:
    delivery.targets.useBlackList = "no";
     

 

Link to a Typology:

Assign this rule to a typology (e.g., the default typology or a custom one) under Typology Management > Typologies.

Ensure this typology is applied to your delivery templates or deliveries (found in the "Typology" tab of the delivery properties).

Test the Rule:

Create a new delivery using the typology and confirm that useBlackList is set to "no" during preparation.

Thanks

Sushant Trimukhe

Avatar

Administrator

Hi @JorgeTo1
Were you able to resolve this query with the help of the provided solutions, or do you still need further assistance? Please let us know. If any of the answers were helpful in moving you closer to a resolution, even partially, we encourage you to mark the one that helped the most as the 'Correct Reply.'
Thank you!



Sukrity Wadhwa

Avatar

Level 2

Hi, thanks for your response.

The issue has derivated from the initial request. I'm trying to change the "useBlacklist" delivery values. The problem comes when trying to acccess the "targets" element as it's not recognisable. I'm trying with the code below but got an error.

"XML-110011 Unable to find element 'property' with attribute 'name' set to 'useBlacklist' (document with schema 'scriptContext')"

var delivery = NLWS.xtkQueryDef.create(
{queryDef: {schema: vars.targetSchema , operation: 'select',
select: {
node: [
{expr: '@id'},
]
}
}});
var results = delivery.ExecuteQuery();

for each (var res in results.getElements("query2")){
delivery = NLWS.nmsDelivery.load(res.getAttribute('id'));
delivery.targets.useBlacklist= 0;
delivery.save();
}

This code works fine when the filed modified is not a XML attribute in delivery schema. So if you could help me access that targets.useBlacklist.

Thanks for your time!

Avatar

Administrator

Hi @JorgeTo1,

Thanks for sharing the update. I will escalate this to the Adobe Campaign SMEs and work on getting you the help that you need.

Thanks!



Sukrity Wadhwa