how can i create a duration pill value in Flow Designer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2022 05:46 AM
I need to set a duration value based on a system property
The below script outputs as expected: the property lookup is 300000 which then outputs as 00:05:00 as expected.
var t = gs.getProperty('enhancement.wait.duration');
var t2 = parseInt(t);
gs.log('enhancement time get property = ' + t2);
var dur = new GlideDuration(t2);
gs.log('enhancement duration getdurval = ' + dur.getDurationValue());
return dur.getDurationValue();
but when pushing this through the action to return the duration value back to the flow it errors with: An error occurred while parsing the duration value