Avatar

Level 4

Hi.

You cannot import javascript code into an 09email template, unfortunately. Templates are JSSP pages and they have they live in their ecosystem.

You can use personalization blocks, that is correct. Alternatively, you can use a typology rule or initialization script of the delivery to add some javascript code.

Last, but not least, you can create a stored procedure in some DB (SQL Server for example) that will encrypt the data and then map it into some variable in recipient data scheme or just expose it as a SQL function.

Also, for an unsubscribe function, the nms:recipient schema has @cryptedId attribute, that is recipient id encrypted with AES with server secret. If unsubscribe mechanic feeds back to Adobe server, you can use it as a token for unsubscribe function. It is secure and does not require you of exposing any of PII data.