Hi,
In the Adobe documentation, under Use Cases>Double Opt-in:
It states:
Confirmation messages are sent via a dedicated delivery template referenced at the subscription service level.
Create a delivery template for sending the subscription confirmation messages.
Insert the confirmation link into the message content: this link lets you access the Web form to record subscription confirmation.
The syntax of the link to the subscription confirmation form looks like this:
<a href="http://SERVER/webApp/INTERNAL_FORM_NAME?&id=<%=escapeUrl(recipient.cryptedId)%>">
As verified by their example:
Yet, in my Web App, I am given this code:
...which displays this code:
http://bostonscientific-stage.neolane.net/webApp/APP12
id=<%= escapeUrl(cryptString(recipient.id)) %>
So which code do I use?
The one given in the Documentation:
<a href="http://SERVER/webApp/INTERNAL_FORM_NAME?&id=<%=escapeUrl(recipient.cryptedId)%>">
...or the one given to me by the Web App:
http://bostonscientific-stage.neolane.net/webApp/APP12
id=<%= escapeUrl(cryptString(recipient.id)) %>
Notice the difference between the two:
Documentation:
&id=<%=escapeUrl(recipient.cryptedId)%>">
..and the Web App:
id=<%= escapeUrl(cryptString(recipient.id)) %>
Which one do I use? (Documentation example code or the actual Web App code?)
I spoke with two different tech support representative at Adobe and they each gave me different answers.
Thank you,
Jae
Solved! Go to Solution.
Hi Jae,
You can use any of the two. They both will return the same result.
recipient.encryptedId is an attribute of recipient schema which contains the recipientId in encrypted format.
On the other hand cryptString(recipient.id) will do the encryption on runtime.
Feel free to use any of the two.
Regards,
Vipul
Hi Jae,
You can use any of the two. They both will return the same result.
recipient.encryptedId is an attribute of recipient schema which contains the recipientId in encrypted format.
On the other hand cryptString(recipient.id) will do the encryption on runtime.
Feel free to use any of the two.
Regards,
Vipul
Thank you Vipul. Much appreciated.
Jae
Hi Vipul,
Thanks for the above information.
If possible, can you let us know where we can we find the definitions of functions- escapeUrl and cryptString in Adobe Campaign.
Thanks,
Priyanka
Views
Replies
Total Likes
Hi Priyanka,
Both these functions are internal to Adobe and you will not be able to view the code for them.
Regards,
Vipul
Views
Replies
Total Likes
Hi Vipul,
Would it be possible to use this functionality to send to a third party site?
We are sending a customers account number to a partner site in order to redeem a promotion, but if we use the escapeURL and crypt string the partner site may need the key to decypher. Is this possible or do we need to use soemthing else to encrypt the account number?
Thanks
Andrew
Views
Replies
Total Likes
Hi Andrew
You will need different encryption and a key that you can share with the third party . The encryption function for the crypt string are internal to adobe and it would not be possible for the third part to decrypt the cryptId.
Thanks
Subh
Views
Likes
Replies
Views
Likes
Replies