script is not working in the flow designer description

chandan31
Tera Contributor

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

6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

In the flow designers description , current subject person and manager name is not populating  

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

LinkedIn

chandan31_0-1705933635025.png