Make typology unsubscription link control rule stop send | Community
Skip to main content
Level 3
May 13, 2020
Solved

Make typology unsubscription link control rule stop send

  • May 13, 2020
  • 3 replies
  • 9910 views

Hi,

 

At the moment the default control rule only checks if the unsubscription link exists and then gives a warning in the log but user can still send the delivery.

Is there a way to modify this and stop the send completely like the subject line control rule?

 

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by bisswang

You can duplicate the typology rule which comes with ACS.

Then replace logWarning by logError in the code

3 replies

Adobe Employee
May 15, 2020

...

 

bisswangAdobe EmployeeAccepted solution
Adobe Employee
May 15, 2020

You can duplicate the typology rule which comes with ACS.

Then replace logWarning by logError in the code

Level 3
May 15, 2020

Thanks @bisswang! I have found that out after checking the codes in Check subject but now my problem is that I can't seem to edit the codes or type in anything in the codes section. I have reached out to Adobe support but haven't gotten any response.

I thought it might be my access level on that instance but tried it on other instance too. Still I was not able to make any edit inside the code editor.

Do you have any idea why?

 

raj_mandalapu
Level 7
May 16, 2020

As Ramon mentioned, you can duplicate check unsubscription control rule and change logWarning link to logError

 if (delivery.content.email.length > 1) {
logWarning(sg.missingOptoutTextMultivariant(emailContent.variant));
}
else {
logError(sg.missingOptoutText());
}