break statement is not working in the flow designers script

chandan31
Tera Contributor

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.
 
chandan31_1-1706006879037.png

 


 


 

return test;
1 ACCEPTED SOLUTION

Peter Bodelier
Giga Sage

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.

View solution in original post

1 REPLY 1

Peter Bodelier
Giga Sage

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.