arshanapalli
Tera Contributor

Hi Community,

You may have noticed that OOB Flow Designer Action "Generates link to table record" appends [Code]..[/Code] when used to generate a link. 

Here is the workaround action that can be used to achieve the link:

Action Name: Generate the link Action in Flow(takes 3 input values)

find_real_file.png

Action:

Inputs:

find_real_file.png

Script Step:

find_real_file.png

Code:

(function execute(inputs, outputs) {

var native_ui_html="<u>" + "<a href=\""
+ gs.getProperty('glide.servlet.uri')
+ "nav_to.do?uri="
+ inputs['tablename']
+ ".do?sys_id="
+ inputs['recordsysid']
+ "\" target=\"_blank\">"
+ inputs['linkdisplayname']
+ "</a>"
+ "</u>";

outputs["native_ui_html"] = native_ui_html;

})(inputs, outputs);

Output:

find_real_file.png

 

 

Comments
Community Alums
Not applicable

Thanks for the post. I'm having trouble with the outputs, though. 
As per the pics below, I have the script step, but when I go to output, I don't have the pill on the right to drag into the output. 
If you still have access to the Action, would you mind uploading the XML? I'll import it and look at where I went wrong. Alternatively, could you take a quick look at my images below and give me a hint?

 

Script Step.jpgOutput Pills.jpg

Version history
Last update:
‎06-17-2021 10:00 PM
Updated by: