String or number in property

Akki1
Tera Contributor

I'm doinf

idt.setHttpTimeout(6000);

but if want this 6000 to populate through property then how can i do it? the system property will be string or integer??

 

3 REPLIES 3

Peter Bodelier
Giga Sage

It should be an integer

 

Please leverage this article to see how it created:

Add a system property (servicenow.com)


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Anurag Tripathi
Mega Patron
Mega Patron

Create a Property of type integer and add 6000 in the value. Give it a meaningful name and description.

Then you can fetch the value like this

var myProp = gs.getProperty(‘property_name’); //you the property name you created
idt.setHttpTimeout(myProp);

 

-Anurag

Mayur2109
Kilo Sage
Kilo Sage

Hi @Akki1 ,

You can select type as shown.

 

Please check and Mark Helpful and Correct if it really helps you.

Regards,
Mayur Shardul

Screenshot (52).png