cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
977
Views
0
Helpful
5
Replies

Retrieving NodeID within UCCX Scripting

aalejo
Level 5
Level 5

Does someone knows how to retrieve NodeID within UCCX Scripting?

Thanks

1 Accepted Solution

Accepted Solutions

I see!

Well... I don't know a way of getting it directly.  Since you are talking SQL I'm assuming you have premium license, and hopefully some java know-how:

What I might try is using System.getenv() or System.getpropery() (once I'd found the name of a suitable property using the methods that return a map of all the properties)  to try and retrieve the hostname - you can then work out the node ID based on what you get from that (admittedly by coding it into the script - e.g. UCCXA=node2, UCCXB=node1 or whatever). Just an idea really; I can get the hostname of my laptop in this way, but the set of properties may be different on the Linux OS and I don't have a server handy.

Regards

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

View solution in original post

5 Replies 5

Aaron Harrison
VIP Alumni
VIP Alumni

Hi

What are you trying to achieve?

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Hi

Trying to save a single record per call on an SQL database and make that record to match the one on the UCCX database.

Regards

I see!

Well... I don't know a way of getting it directly.  Since you are talking SQL I'm assuming you have premium license, and hopefully some java know-how:

What I might try is using System.getenv() or System.getpropery() (once I'd found the name of a suitable property using the methods that return a map of all the properties)  to try and retrieve the hostname - you can then work out the node ID based on what you get from that (admittedly by coding it into the script - e.g. UCCXA=node2, UCCXB=node1 or whatever). Just an idea really; I can get the hostname of my laptop in this way, but the set of properties may be different on the Linux OS and I don't have a server handy.

Regards

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Yes, i know how to do it using java. I was looking for a cleaner solution using the contact properties, session properties.

But anyways 5 points for you!

Since I had to do this I thought I would post it.

nodeID needs to be created as a string

Set nodeID = { String hostname = System.getenv().get("HOSTNAME"); return hostname; }