Issue with the Approvals Widget failing in Service Portal

ssswetha13
Tera Contributor

Hi All,

Did anyone of you have faced any issue with respect to the cloning of the "Approvals" widget? I have cloned the approvals widget, and had created certain approvals to check whether the data is being reflected in the portal or not. However, the data was not getting populated. Also, I haven't made any customizations to the widget. It is throwing the error as failing widget.Let me how to proceed ahead with this. Please refer the screenshot:

find_real_file.png

1 ACCEPTED SOLUTION

Hi kammila,



I did found a solution to this issue. This was occurring because in the server side script last line (return gr.document_id.getRefRecord();) it is asking for the valid document id.


if you have directly created the approval in the sysapprovals_approval table (ie. the My Approval under Self-service module in navigation) by clicking on the new button then the id wouldn't be generated (you can check the xml file of the record where the document id will be empty).



Since, the widget is not getting the required document id, it will throw this error in the portal page.



If you delete the record that you have created manually, the widget will work as expected.


View solution in original post

6 REPLIES 6

Thank you! This helped me!

Federico Fiume
Tera Contributor

Hi all,



I have the same issue, but is really strange cause I'm reproducing it only while impersonating a certain user of our company.
I checked the My Approvals, My Work and My Group Works list (of that user) but I haven't noticed nothing in particular...



Can you help me undertand and fix this problem, please?



Thanks,
Federico