Please help with Flow Designer Inline Script Issue.

Meera_P
Tera Expert

Hello,

 

I created a custom table with one URL field type.  The below inline script generate a URL and inserted it into the custom table.  However, the URL that is showing in the custom table looks like this.  Thank you

 

Example:

Meera_P_0-1711390299302.png

I would like to display it as the text "

 

1. Here is the Flow Designer Inline Script:

 
var SysId  = fd_data._2__for_each.item.sys_id;
var tableName = 'sc_req_item';
return '[code]' + 'Click here' +  url + '[/code]';

 

 

9 REPLIES 9

SanjivMeher
Kilo Patron
Kilo Patron

You can just return the URL in the script

var SysId  = fd_data._2__for_each.item.sys_id;
var tableName = 'sc_req_item';
return url;

Please mark this response as correct or helpful if it assisted you with your question.

Thank you @SanjivMeher 

I have tried your suggested code. 

 

I would like the URL embedded into clickable text, for example, "Click her to view", without displaying the entire URL link.

 

The original code displays the entire link with the text "code" and the second record displays the entire URL without the text code link

 

Meera_P_0-1711400269279.png

 

 

 

 

 

Can you try?

var SysId  = fd_data._2__for_each.item.sys_id;
var tableName = 'sc_req_item';
return '[code]<a href="'+url+'">Click here</a>[/code]';

Please mark this response as correct or helpful if it assisted you with your question.

Thank you for helping @SanjivMeher 

It it still showing the full url link: 

Meera_P_0-1711402489367.png