Error while invoking activity using Ajax in function
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.
Unauthenticated operator ID
Steps to Reproduce
- Create an oAuth2 Service Package for the Pega mobile application.
- Log in to the mobile application.
- Invoke the function that calls a JQuery AJax Request to retrieve data from the activity.
A defect in Pegasystems’ code or rules.
oAuth2 Access token was missing when the activity was invoked using JQuery.
Perform the following local-change to invoke the activity:
Use the Pega out-of-the-box oSafeURl.put method AJAX function instead of JQuery.
0% found this useful