getting out connection properties

Post Reply
borisCM
Member
Posts: 37
Joined: Mon May 06, 2019 12:23 pm
Location: Netherlands

getting out connection properties

Post 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}}
Attachments
outConnectionsProperties.PNG
outConnectionsProperties.PNG (4.34 KiB) Viewed 3252 times
freddyp
Advanced member
Posts: 1023
Joined: Thu Feb 09, 2012 3:53 pm

Re: getting out connection properties

Post 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.
borisCM
Member
Posts: 37
Joined: Mon May 06, 2019 12:23 pm
Location: Netherlands

Re: getting out connection properties

Post by borisCM »

ok,

Thanks for the info.
jan_suhr
Advanced member
Posts: 592
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: getting out connection properties

Post 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.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Post Reply