Which code do I use?

Avatar

Avatar

jae_lee

Avatar

jae_lee

jae_lee

10-03-2017

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Vapsy

Employee

Avatar

Vapsy

Employee

Vapsy
Employee

11-03-2017

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

Answers (5)

Answers (5)

Avatar

Avatar

subhayanb

Avatar

subhayanb

subhayanb

31-01-2018

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

Avatar

Avatar

jae_lee

Avatar

jae_lee

jae_lee

13-03-2017

Thank you Vipul. Much appreciated.

Jae

Avatar

Avatar

andrewd10864294

Avatar

andrewd10864294

andrewd10864294

30-01-2018

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

Avatar

Vapsy

Employee

Avatar

Vapsy

Employee

Vapsy
Employee

28-12-2017

Hi Priyanka,

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

Regards,
Vipul

Avatar

Avatar

Priyanka_Priyan

Avatar

Priyanka_Priyan

Priyanka_Priyan

28-12-2017

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