Create a change management from UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2024 12:33 PM - edited 11-13-2024 12:34 PM
Hi beautiful community, i have a problem
I need to create a record in the change request table with a UI action.
The button that creates it is located in a task of a catalog item, and it should only be displayed for a specific service, when the state is "work in progress", only for the third task, and when a date-type variable that I need to display is not empty.
I have the following code:
But in the logs, I get the error "Unparseable date: '0'".
I am not sure what is causing this issue, and I would appreciate any help with this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 03:15 AM
Hi @AlejandroS53470 ,
Your code look okay to me but if dates will not have proper value then you will get error.
check all date fields one by one.
Also, do not make client callable UI action, write code without function so by default it will be consider as server side code.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------