Getting Undefined when closing custom disposal task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @devanshsing ,
Check your custom code in server side component on disposal task table whether data validation has properly done or not.
Also check your browser console, system log, if it is throwing any error. Share that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @devanshsing,
What’s happening is when you click Close Complete, some custom logic you added (most likely in your Flow / Business Rule / UI Action) is trying to show a message… but it’s not passing any value. So instead of a proper message, ServiceNow just displays “undefined.”
Just find where the message is being set and make sure it’s not empty.
Example fix:
gs.addInfoMessage("Task closed successfully");
Let me know if this works!!!!😉
If you find my answer useful, please mark it as Helpful and Correct. 😊
Regards,
Soham Tipnis
ServiceNow Developer || Technical Consultant
LinkedIn: www.linkedin.com/in/sohamtipnis10
