<@U5TNEF7FW> Yeah the URL in the UI. Just hoping f...
# suitescript
d
@karlenigma Yeah the URL in the UI. Just hoping for an easier way than concatenating url fragments by recursively iterating up the parents...
k
So just to clarify do you mean the system.netsuite.com/ url.
The one you would use to access the record within NetSuite. If this is the case then it's usually by internal id.
d
No, I'm trying to get the SCA url. So for example, if I have a tree that's Safety > Protective Gear > Gloves, and I have loaded the record for Gloves, I need to get safety/protective-gear/gloves
Which yes, could change if someone edited the url fragment of a parent, but there's no way around that.
k
Hmmm don't know how you would get that info to be honest. As that's a multi join.
d
Disappointing, but unsurprising.
k
Like the parent > child > child.
Not too sure how they do it in SCA. Is there no clue as to how they are doing it in the core code of SCA using ss1.
As they must be pulling it through SCA. But then I suppose they have worked it in to the commerce api.
d
I guess it's a trivial enough while loop...