Hi all,
How do I check if the email is using a default sender name (content block) in the typology?
I have tried checking if strSender == 'ABC' and change the Phase to After the end of the analysis but it doesnt seem to work.
Any help is appreciated
Solved! Go to Solution.
Views
Replies
Total Likes
@michelle_lowThe entire string may or may not match as is because of the quote inside the quote, class applied could be different or character escaping. I had earlier tried below code and it was working. Match operation would be much more flexible and would also cater to scenario if 'DefaultSenderName' is typed in the Sender Name field.
if (senderName.match(/DefaultSenderName/) || senderName.match(/ABC/)) {logError("Error in" + sg.inFromName());return false;}
Views
Replies
Total Likes
@michellelowsl I would suggest to do that filtering in the 'Target' section of the delivery itself using General > Profile (attributes). Same can be achieved in the Query activity if using a workflow.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Hello Michelle, to complete Shelly's solution, you can duplicate the Check Subject typology rule, change its ID and export it in a Package. You will then be able to edit the code in notepad++ and apply the control code to the sender name as explained above. Once it's done upload the package back to ACS.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @michellelowsl,
Were you able to resolve this query or do you need more help? Do let us know.
Thanks!
Views
Replies
Total Likes
Views
Replies
Total Likes
@michellelowsl The content/text inside the content block is not available for validation during delivery preparation (typology rule), however if something is added before and after the content block, that could be validated. "emailContent.senderName.source" would be something like below, so you can check if additional "ABC" appears at the start or generate a warning if sender name has "DefaultSenderName" so to manually validate the branding information provided.
emailContent.senderName.source=ABC<span class="nl-dce-fragment nl-dce-done" data-nl-name="DefaultSenderName" contenteditable="false">Default sender name</span>
You may handle the validation in the content block itself and provide an appropriate default value.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
@michelle_lowThe entire string may or may not match as is because of the quote inside the quote, class applied could be different or character escaping. I had earlier tried below code and it was working. Match operation would be much more flexible and would also cater to scenario if 'DefaultSenderName' is typed in the Sender Name field.
if (senderName.match(/DefaultSenderName/) || senderName.match(/ABC/)) {logError("Error in" + sg.inFromName());return false;}
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies