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 05:56 AM
Hi there,
Where exactly are you testing this? You did mention "in the description in flow designer", though what do you mean with that?
Also what exactly is not working? What did you debug, up to which line is it working, from which line is it failing, etcetera.
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:18 AM
In the flow designers description , current subject person and manager name is not populating

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 06:24 AM
Can you share a screenshot perhaps, because still don't understand what your trying to mention.
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:27 AM