How can I submit the action request content in encrypted form?

Pega Platform provides additional request verification when you use autogenerated controls.

I tried to resolve the verification issue of the rules that I got from the Security Access Control Check tool.

I followed the ‘Submitting the action request content in encrypted form’ article from the Pega Documentation.

I copied the solution from the article, which was this:

var oSafeUrl= SafeURL_createFromURL(“<%tools.appendstring(pega_rules_utilities.pzEncryptURLActionString(tools, “Thread”, “pyActivity=Data-SpellChecker.Spellcheck”));%>”);

And I replaced the activity’s class and name.

I tried it in HTML Fragment and in custom control but I got the following error in both cases:

“The method appendstring(String) is undefined for the type StreamBuilderToolKit” (I attached a screenshot)"

How I can use the Pega-suggested solution in this case?

Thanks in advance!

Hi @PeterO59: Noticed a typo in the article. Can you try with below.

var oSafeUrl= SafeURL_createFromURL(“<%tools.appendString(pega_rules_utilities.pzEncryptURLActionString(tools, “Thread”, “pyActivity=Data-SpellChecker.Spellcheck”));%>”);

You can also refer the same from SpellCheckerMoreDialog as mentioned in the article.

Thanks.

@ArulDevan Thank you! This typo was the problem.