Avatar

Level 2

Hi Jon,
Thank you for your response.
I have tried the following:

  1. <%= cryptString(memberId) %>      --> [nms:webApp Error] ReferenceError: memberId is not defined
  2. '<%= cryptString(' + memberId + ') %>'    --> I removed the double quotes however, when I decrypted it in Script Activity, the value in the log is:
                         2019-08-20 14:38:23 decrypted memberId= + memberId +
                        2019-08-20 14:38:23 memberId=@uWgrIzsoAUuwWi0Ojk5aE/Ux2BbGdikIMNnXwQ8qsSM=
  3. cryptString(memberId)    --> no <%= %>. Error throws: Uncaught Reference type: cryptString not defined in the browser console

I thought there's just syntax error around this, however, I haven't figured it out yet.