The CreatorCon Call for Content is officially open! Get started here.

Copy Case in Customer Portal

Servicenow Sava
Giga Contributor

When case is created in Customer Portal. I need a copy case functionality. When user clicks the Copy case in the customer portal then the selected fields values should be auto populated to Case creation form in customer portal. So that user can duplicate a case.

 

@Ankur Bawiskar @Indrajit 

5 REPLIES 5

@Ankur Bawiskar 

 

I debugged the issue by first checking the browser console, where I found syntax errors and a $sp is not defined error. That helped me confirm the code was running outside the proper Service Portal context. I then compared the working Platform UI Action with the Portal script and isolated the issue to the client controller logic. To validate, I added gs.info and console.log statements to confirm the server was returning data correctly and the problem was only on the client side. Based on this, I rewrote the code to remove invalid $sp usage and ensure the values are passed through the widget properly.