Doing an opportunity search and need to get the en...
# suitescript
n
Doing an opportunity search and need to get the entity type such as partner or customer for if statement. How can I do that through the search and not do a lookupfields
s
SuiteQL? join anything you want there it seems.
n
Can't in this instance.
s
can't do SuiteQL or can't do the join?
b
not really sure how you get a partner in the entity field
but you can probably use the customer join to get the stage or status
n
okay, i'll try that @battk
@stalbert can you use that in a suitelet?
s
I think you can use SuiteQL in all server side scripts
though I haven't tried in a suitelet. The main reason I suggest it is it allows you maximum flexibility in joining in data from other tables.
n
got ya, i'll look into it
m
You can absolutely use SuiteQL in a suitelet and in client side scripts too
s
I almost hate SQL, but it seems SuiteQL is such a leap forward compared to the prior alternatives I intend to start using it everywhere I can.