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.
Views
Replies
Total Likes
@JorgeTo1,
Modify the Delivery Template:
Let me know if this works?
Thanks
Sushant Trimukhe
Views
Replies
Total Likes
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:
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
Views
Replies
Total Likes
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!
Views
Replies
Total Likes
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!
Views
Replies
Total Likes
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!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies