- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 12:25 AM
Hi All,
I'm trying to updating short description from flow designer script, but it is not updating, Please find my script below:
Action: Updated record
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 12:47 AM
@Dasari Srihari Try the below script. It'll work.
var date = new GlideDateTime();
date.addSeconds(19800);
var istTime = date.getDisplayValue();
gs.log("Incident short Description time"+ istTime);
var grp = fd_data.trigger.current.assignment_group.name;
gs.log("Incident short Description group"+ grp);
var text = "Reminder1: "+ grp + ' - '+ istTime;
return text;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 12:38 AM
Hi @Dasari Srihari
Where are you writing this script?
Is it the inline script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 12:43 AM
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 12:47 AM
@Dasari Srihari Try the below script. It'll work.
var date = new GlideDateTime();
date.addSeconds(19800);
var istTime = date.getDisplayValue();
gs.log("Incident short Description time"+ istTime);
var grp = fd_data.trigger.current.assignment_group.name;
gs.log("Incident short Description group"+ grp);
var text = "Reminder1: "+ grp + ' - '+ istTime;
return text;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 12:47 AM
you should simply return the value if you are using inline f(x) script
something like this
var date = new GlideDateTime();
date.addSeconds(19800);
var istTime = date.getDisplayValue();
var grp = fd_data.trigger.current.assignment_group.name.toString();
return grp + ' date ' + istTime;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader