Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 02:48 AM
Hi All,
I want to break the statement but it is not working
var ab= fd_data.trigger.current.subject_person.getDisplayValue();
var cd= fd_data.trigger.current.subject_person.manager.getDisplayValue();
var recordID = fd_data.trigger.current.sys_id;; //your record sys_id
var displayText = 'link'; //your display text
var workNotes = '[code]<a href="esc?id=hrm_ticket_page&table=sn_hr_core_case_workforce_admin&sys_id=' + recordID + '">' + displayText + '</a>[/code]';
var test="Dear" +ab+',' <br> +cd + "has requested 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"+workNotes +". 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;
Can you help me resolve this issue in the flow designers script.
return test;
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 03:17 AM
Hi @chandan31,
The break should be between quotes as well.
var ab= fd_data.trigger.current.subject_person.getDisplayValue();
var cd= fd_data.trigger.current.subject_person.manager.getDisplayValue();
var recordID = fd_data.trigger.current.sys_id;; //your record sys_id
var displayText = 'link'; //your display text
var link = '<a href="esc?id=hrm_ticket_page&table=sn_hr_core_case_workforce_admin&sys_id=' + recordID + '">' + displayText + '</a>';
var test="[code]Dear" +ab+', <br/>' +cd + "has requested 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" + link + ". 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[/code]";
return test;
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 03:17 AM
Hi @chandan31,
The break should be between quotes as well.
var ab= fd_data.trigger.current.subject_person.getDisplayValue();
var cd= fd_data.trigger.current.subject_person.manager.getDisplayValue();
var recordID = fd_data.trigger.current.sys_id;; //your record sys_id
var displayText = 'link'; //your display text
var link = '<a href="esc?id=hrm_ticket_page&table=sn_hr_core_case_workforce_admin&sys_id=' + recordID + '">' + displayText + '</a>';
var test="[code]Dear" +ab+', <br/>' +cd + "has requested 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" + link + ". 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[/code]";
return test;
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.