Marc-André Bouchard
10/17/2024, 3:10 PMsearch.lookupFields
to get the name of the record, only, I want it without the hierarchy. name
gets me the name with all the parents. There doesn't seem to be a namenohierarchy
. Am I missing something here? 🤔Anthony OConnor
10/17/2024, 3:21 PMconst nameStr = searchlookupFields({
type,
id,
etc...
});
const name1 = nameStr.split(': ')[1];
Anthony OConnor
10/17/2024, 3:21 PMerictgrubaugh
10/17/2024, 4:14 PMconst lastSegment = (name) => {
const names = name.split(':')
return names[names.length - 1].trim()
}
erictgrubaugh
10/17/2024, 4:15 PMnamenohierarchy
is never there when you need it 😄Marc-André Bouchard
10/17/2024, 5:51 PM