Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Error while invoking activity using Ajax in function

SA-104389

Summary



Pega Platform 8.2.5 is used with Pega Mobile Client 7.
On performing an Ajax call to invoke an activity and enabling the oAuth2 for the mobile application, the response is returned as unauthenticated. However, the same code works correctly from Pega Designer Studio and the Case Worker portal.


Error Messages



Unauthenticated operator ID


Steps to Reproduce

  1. Create an oAuth2 Service Package for the Pega mobile application.
  2. Log in to the mobile application.
  3. Invoke the function that calls a JQuery AJax Request to retrieve data from the activity.


Root Cause



A defect in Pegasystems’ code or rules.
oAuth2 Access token was missing when the activity was invoked using JQuery.



Resolution



Perform the following local-change to invoke the activity:

Use the Pega out-of-the-box oSafeURl.put method AJAX function instead of JQuery.

Published April 15, 2020 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us