Question
Virtusa
IN
Last activity: 4 Apr 2024 11:37 EDT
Unable to clear the property level error messages on a Page when created from Service-REST
Service-REST is built and consuming a JSON Request and performing mapping on a temp page called CasePage, then we are calling svcAddWorkObject to created the Work object based on the data mapped on CasePage.
Here if we have any errors on CasePage , the requirement is to still go ahead and create the case and then show the errors on UI.
So here we tried to clear the messages using Page-Clear-Message method and also using function @(Pega-RULES:Default).pxClearMessages(Primary) , but still the errors persist on CasePage. Also later in svcAddWorkObject ->step3 ->createWorkPage step23-> setOutput -> here pyErrors is getting set and we are unable to create the case.
Can you please help how to clear the messages on CasePage
***Edited by Moderator Rupashree S. to add Capability tags***