Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add URL into system properties and refer it from html code ?

Community Alums
Not applicable

How to add URL into system properties and refer it from html code ?

5 REPLIES 5

Mohith Devatte
Tera Sage
Tera Sage

Hello @Awais Ahmed ,

you can add it in value field as a string 

But do you want to access that in widget HTML code?

Community Alums
Not applicable

Yes @Mohith Devatte , How about the Suffix in SYS Property ? What is it ?

@Awais Ahmed add your URL in values field of the sys property 

When you come to your widget you can write this in server script

SERVER SCRIPT:

data.url = gs.getProperty('you_property_name');

 

HTML:

<a href={{data.url}}>Click Here</a>

 

Hope this helps 

mARK MY ANSWER CORRECT IF THIS HELPS YOU

Community Alums
Not applicable

Thanks @Mohith Devatte, Just make sure to put data.url in {{}} -> href={{data.url}}. It's Working.