
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 03:16 AM
Hi Team,
I have created a metric definition for a custom field NextAction in servicenow.
For a Case number it can have multiple records. If you see the below screenshot with Column Duration.I want to extract sum of values , which have different units like seconds,minutes,hours etc
Can someone tell how to achieve it? I wrote below script but its not working properly.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 05:12 AM
hi @Community Alums ,
How about changing your code to the yellow part as below?
Then, IF condition looks working.
Could you confirm in your end?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 05:12 AM
hi @Community Alums ,
How about changing your code to the yellow part as below?
Then, IF condition looks working.
Could you confirm in your end?
Thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2024 11:58 PM
This issue is resolved, there was some mistake from myside.