Windows Reserved Word in URL used in Business Operation
I have an issue where a Windows Reserved word, in my case CON, is causing an error when used as part of a JSON Get operation. In this case CON is the user identifier (the full identifier is CON.SURNAME) of a person and I am trying to read the employee record using a web service provided by the payroll system.
Is there a way I can get around this, some sort of encoding that would enable the inclusion of this identifier. I can't just change the identifier has it is used extensively across systems.
Product version: IRIS 2020.2
Discussion (3)1
Comments
Have you tried URL encoding? CON would be equal to %43%4F%4E and con would be %63%6F%6E
Thanks Alexander, I will try that.
Worked great.
code sniplet:
set test="CONcatenate".url=""
for i=1:1:$l(test) s url=url_"%"_$zhex($a(test,i))
write
i=11
test="CONcatenate"
url="%43%4F%4E%63%61%74%65%6E%61%74%65"