Which code do I use? | Community
Skip to main content
jae_lee
Level 3
March 10, 2017
Solved

Which code do I use?

  • March 10, 2017
  • 6 replies
  • 4331 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by vraghav

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

6 replies

vraghav
Adobe Employee
vraghavAdobe EmployeeAccepted solution
Adobe Employee
March 11, 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

jae_lee
jae_leeAuthor
Level 3
March 13, 2017

Thank you Vipul. Much appreciated.

Jae

December 28, 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

vraghav
Adobe Employee
Adobe Employee
December 28, 2017

Hi Priyanka,

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

Regards,
Vipul

andrewd10864294
Level 2
January 30, 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

Adobe Employee
January 31, 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