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

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

LinkedIn

It should work fine when dragging/dropping from the right column:

MarkRoethof_0-1705934424131.png

 

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

LinkedIn