Add URL on comments

akin9
Tera Contributor

Hello Experts 

My URL= https://www.servicenow.com.

We want to add URL on below Comments after "successfully line " but it needs to be clickable.

Please support to achieve this

 

current.comments = "Access granted to "+current.variables.requested_for.name+ " successfully. you will have access on";
if (workflow.scratchpad.closedSkippedIncomplete==true){
current.state=4;
}
else{
current.state=3;
}

 

 

Thank you

1 ACCEPTED SOLUTION

set system property glide.ui.security.allow_codetag to true

 

Please mark if answer is correct

View solution in original post

16 REPLIES 16

akin9
Tera Contributor

@reshmapatil ,@saurav11,@ankur

Please support on this

Hello Akin,

Go to your workflow and Include this line of code 

task.comments="Access granted to "+current.variables.requested_for.name+ " successfully. "+'[code]<a href="https://www.servicenow.com" target="_blank">ServiceNow</a>[/code]'+" you will have access on";

FYR 

shyam10_0-1671984894019.png

 

output

shyam10_1-1671984941019.png

let me know if this helped or required any further information

 

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

Hello @shyamkumar VK 

I have tried the same ur script but its not working for me.

please check it.

 

akin9_0-1673262064407.pngakin9_1-1673262124098.png

 

Pls support to achieve this.

@Akin ,

current.comments = [code]<a href="https://google.com" target="_blank">Google</a>[/code]

 

can you add this line and test if you can see URL in the comments , comment the existing line of code and add above , Just kind of troubleshoot

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

Hello @shyamkumar VK 

 

I have done the same but its not working for me.

current.work_notes="Access granted to "+current.variables.requested_for.name+ " successfully. "+'[code]<a href="https://google.com" target="_blank">Google</a>[/code]'+" you will have access on";