Encrypt url

Hi All,

Have a requirement to encrypt url because we are going to embed pega url in salesforce.

Which function to use encodeurl or pxEncryptPWURLSafe? Or Is there anyother way?

And for each environment will it be different if activity and its parameter are same.

http:///prweb/PRAuth?pyActivity=pyActivity=Work-.NewFromFlow&InsClass=XX-Work-xx&FlowType=pyStartCase&HarnessPurpose=New&readOnly=false&pyShowFullPortal=true

@Revathi Sundararaju please find the below description and the URL that will help you

  1. Custom Control with JavaScript:

    • When you encounter the message “Unregistered request encountered” in the security alert log, it’s essential to address the behavior of non-autogenerated controls that invoke specific rules.

    • If you’re unable to use the rule form and your control calls custom JavaScript, consider using JavaScript to handle the encryption.

    • Use the function pzEncryptURLActionString to encrypt the URL. Here’s an example of how to do this in JavaScript:

      JavaScript

      // Example: Encrypting the URL in JavaScript
      var encryptedURL = pzEncryptURLActionString(tools, "Thread", "pyActivity=activityName¶m1=value1¶m2=value2");
      
      

      Configuring the custom control by encrypting the URL in JavaScript | Pega

  2. Submitting Action Request Content in Encrypted Form:

    • To ensure that the action request content is submitted in an encrypted form, follow these steps:

@Revathi Sundararaju - From your URL it seems you are trying to create a case from salesforce. Are you planning to embed the Pega UI into salesforce or are you planning to launch a new window.

Suggested approach will be to use mashup where while generating the html you can enable obfuscation.

@PEGARIPPLE Hi, We already have mashup but client is facing some issue with iframe for someother application, so proactively we planned to have link to launch pega portal in new window.