Expand my Community achievements bar.

SOLVED

Which code do I use?

Avatar

Level 3

Hi,

In the Adobe documentation, under Use Cases>Double Opt-in:

It states:

 

"Step 2 - Creating confirmation messages


Confirmation messages are sent via a dedicated delivery template referenced at the subscription service level.

  1. Create a delivery template for sending the subscription confirmation messages.

  2. Insert the confirmation link into the message content: this link lets you access the Web form to record subscription confirmation.

    s_ncs_admin_survey_double-opt-in_sample_1B.png

     

  3. 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:

 

s_ncs_admin_survey_double-opt-in_sample_3.png

 

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

6 Replies

Avatar

Correct answer by
Employee

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

Avatar

Level 1

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

Avatar

Employee

Hi Priyanka,

Both these functions are internal to Adobe and you will not be able to view the code for them.

Regards,
Vipul

Avatar

Level 2

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

Avatar

Level 2

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