Question
Virtusa Corporation
US
Last activity: 7 Aug 2023 13:59 EDT
Calling REST API from Client Side
We have embedded an Text editor app, an external application in Pega UI section using the URL utilizing HTML-iframe tags(custom section). In the embedded application, user can edit the content. To save the changes, external application has given a REST API to update the changes to their server. The service, in the response http header will return an cookie to save the update done in the editor UI. When we call the REST API using connect-REST from an Activity or Data transform, changes are not saved as Pega is making the service call from the application server whereas to save the changes that are in the browser, the service call should be made from the browser, that is client side. I am reluctant to use Java script due to upgrade considerations but I don't see any other option to call the service from client Side. Is there anyway to achieve this without using Java script or custom coding? Note: The Peg application version in 8.4