Page 1 of 1

getting out connection properties

Posted: Sun Oct 23, 2022 8:02 pm
by borisCM
hi,


is it possible to get the standard connection properties in a node script?
i need to find out if the "Carry this type of jobs" log connection is used, so i can create a log file only when the log is requested.

Image

the properties list of the connection is empty
{"_id":"28.6382","_name":"Folder 148","_sesUrl":"http://127.0.0.1:51120","_token":"4f628159acfe65131e1488b73c919a021dfc9de896a8eb3a7911448079d27f48","_properties":{"_properties":[],"_isLocal":true}}

Re: getting out connection properties

Posted: Mon Oct 24, 2022 8:53 am
by freddyp
That is not possible but it is also not really necessary: you can always create a logfile and send it to log. If there is no log connection there will be a warning message, but that is all. And when the user defines "Job with log" the sendToLog result is automatically attached as a dataset.

Re: getting out connection properties

Posted: Mon Oct 24, 2022 9:35 am
by borisCM
ok,

Thanks for the info.

Re: getting out connection properties

Posted: Thu Oct 27, 2022 9:24 pm
by jan_suhr
To add to Freddy's answer you can use the Get Messages app to get just that error message and use it for different ways to announce it to you.