<@UHQFWH30Q> what are you actually hoping to achie...
# suitescript
j
@David Durst what are you actually hoping to achieve? I've used embedded JS to execute when the page loads, for example you could have an inlineHTML field that has alert('whatever'); as the default value.
d
What I am trying to achieve is extracting data from inbound cases using regex and in order to properly place that data once extracted I can either limit the fields and records or I can allow a define a function in JS (In a field) that will know how to handle the data once extracted.
j
Could you not achieve the above with UserEvent ?
d
Its possible to do that but then I would have to define every single potential case
Currently our existing system has over 4000 unique cases that are defined at a user level
d
@michoel will this eval suitescript?
m
Warning: Executing JavaScript from a string is an enormous security risk. It is far too easy for a bad actor to run arbitrary code when you use 
eval()
. See Never use eval()!, below.
d
@michoel yeah I am aware
If the bad actor has gotten that far he already has JS console access so………….
m
I haven't tried using it in SS but it's part of the JS spec so I would be surprised if it doesn't work
d
wish me luck 🙂
actually I suspect it does probably work and its likely how they are doing Client Side Script execution
m
I would definitely strongly consider alternatives before using eval
👍 1