On a search.lookupFields, how can you get the reco...
# suitescript
n
On a search.lookupFields, how can you get the record type
a
What is your use case? what are you trying to do?
n
Doing a if statement and need the record type to use as a filter. Basically, if recordType == ''
Also, its a calender event search and want to know the original record type created from
n
so you're actually looking at the created from field of a record?
n
for example, the one I am search is related to a support case. However, the supportcase field under related records is not searchable.
So, on calendar events, i need to determine if it is from a project or from a case
@NElliott @alien4u if there is a way to do it without creating a custom field, that would be great, which is why I was trying search.lookupFields
a
Well
events
record do not have a createdfrom and they are very tricky records that I found myself using some undocumented fields... so what I'm saying here is basically a debugging and try try try process...
n
Got it, thanks. I'll give it a try
n
If you can load the record and loop through the related records you should be able to ascertain the record type for each related record. I do not know if that helps, perhaps you only ever see one type or another that is of interest to you and that would be enough.
n
thanks, good thought. I'll try that as well.