Question
Accenture
IN
Last activity: 24 Mar 2024 23:51 EDT
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://<dev1env>/prweb/PRAuth?pyActivity=pyActivity=Work-.NewFromFlow&InsClass=XX-Work-xx&FlowType=pyStartCase&HarnessPurpose=New&readOnly=false&pyShowFullPortal=true
***Edited by Moderator Rupashree S. to add Capability tags***
@Revathi Sundararajuplease find the below description and the URL that will help you
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
pzEncryptURLActionStringto encrypt the URL. Here’s an example of how to do this in JavaScript:JavaScript
Configuring the custom control by encrypting the URL in JavaScript | Pega
Submitting Action Request Content in Encrypted Form:
@Revathi Sundararajuplease find the below description and the URL that will help you
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
pzEncryptURLActionStringto encrypt the URL. Here’s an example of how to do this in JavaScript:JavaScript
Configuring the custom control by encrypting the URL in JavaScript | Pega
Submitting Action Request Content in Encrypted Form:
Use the rule utility function
pega_rules_utilities.pzEncryptURLActionStringto encrypt the action.The function requires parameters in the following format:Submitting the action request content in encrypted form | Pega