Copy Case in Customer Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.