script is not working in the flow designer description
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 05:52 AM
Hi All,
While writing script in the description in flow designer this script is not working .
var ab= fd_data.trigger.current.subject_person;
var number = fd_data.trigger.current.sys_id;
var cd= fd_data.trigger.current.subject_person.manager;
var url = '<a href="' + gs.getProperty('glide.servlet.uri') + '/esc?id=ticket&is_new_order=true&table=sn_hr_core_case_workforce_admin&sys_id>' + number + '</a>';
var test="Dear" +ab ;
var test=cd "has requested Long Term Care Leave. Review this request and select one of the options below and click Mark as complete. You can review the request by clicking '[code]'+url+'[code]'. In the tab 'Additional Details' you can find the content of the request. Under the tab 'Attachment' you can find uploaded documents, in case documents have been uploaded";
return test;
Please help , this code is not working in the scripting section .
Thanks,
Chandan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 06:38 AM
Ah now I see, nothing to with "flow designers description"
Anyway, how did managed to get the fd_data etc in? Did you type that manually/pasted? Because already seeing this looks like it will never work. If it is supposed to work, it should be a nice balloon or something with blue outline etc.. Now it just looks plain text.
Let me try to reproduce.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 06:40 AM
It should work fine when dragging/dropping from the right column:
So question is a bit what did you do?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field