Hi Guys, I have column.getType() in 1.0 in N/searc...
# suitescript
n
Hi Guys, I have column.getType() in 1.0 in N/search module How to get the type of column in Suite Script 2.0?? Kindly let me know!!
b
should probably be a rewrite
getType is an undocumented method and you get to pay for that mistake now
n
I don’t understand @battk?? like we don’t have anything to get the type of column in N/search in 2.0 as we have getType() in 1.0
b
find getType in the nlobjSearchColumn Methods
n
How I can use that in 2.0 :
result.columns.type
like this?
b
have you found getType in the docs i listed
n
nope
b
correct, getType is undocumented
and was never brought over into 2.0 because of that
n
ohkay ! so what we can use to check the type of column in N/search in 2.0?
🤔
b
none
you will have to rewrite that code in a different way
n
ohkay understood
thanks a lot