02-28-2024 10:27 AM
Is it possible to convert a string value to an int in the WxCC Flow Editor? We have a large qty of patient rooms that call into our Dietary contact ctr. The staff would like WxCC to display the patient room number. Most of the room numbers coordinate with the last 3 digits of the DN, but not all of them. I would like to convert the NewPhoneContact.ANI to an INT variable so I can perform some basic math functions to set the Room Number field. I have some very basic Java experience and I've looked through the Pebble documents but haven't seen a way to accomplish this.
Any help is greatly appreciated!
02-28-2024 03:11 PM
Hi, this may be a basic question, but if you try and just do something like a slice of the ANI to get the last 4 digits or whatever you need, it errors out? I wouldn't think you'd need to specify if it is int vs string or whatnot.
02-29-2024 05:45 AM
02-29-2024 06:18 AM
I just got an updated range, which now shows that these ranges are not contiguous, so that makes this even more challenging. Ideally, having the Flow Editor access an XML doc to designate the Room Number based off of the NewPhoneContact.ANI would be ideal.
02-29-2024 10:57 AM
Is this information available that you could query it via an HTTPS web call, like a basic database lookup that room 123 = Standard but 456 is ICU?
02-29-2024 11:22 AM
I'm meeting with our Cisco Rep tomorrow, we're looking into BRE, as well as other solutions. I'll update you on what we go with.
02-29-2024 05:15 PM
BRE would solve your problem, but my advice is to just put this on an API somewhere. It’s going to be so much easier to maintain and so much easier to just script. There are so many services out that that are dirt cheap which could house a simple DB and HTTP end point for you. The cost will probably be less than $10 USD/month . Peanuts in the grand scheme of things.
david
03-14-2024 08:31 AM
@tmessenger To answer your initial question, you can type cast (convert from string to int) in Flow Designer by creating an integer variable and then using the Set Variable node (with Set Value option) and select as Variable your integer one and as Set Value use the formula {{String_variable}}. You can see an example below of how I make a string variable (Record_String) to integer one (Record_Integer).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide