Hi guys, I am using the `N/query` module and I am ...
# suitescript
r
Hi guys, I am using the
N/query
module and I am having some issues with joins. I am creating two joins one to a child of the current record and one to a parent of the current record. I keep getting
"Search error occurred: Record Join '<CHILD_RECORD>' for record '<CURRENT_RECORD>' was not found.
l
On the join property are you using field name (foreign key)?
s
Paste the syntax of the join here if you dont mind.
r
*var* parcelcontent *=* parcelquery.join({ fieldId : 'custrecord_parcel_content_parent'});
s
Any chance you have tried
Netsuite: Workbook to SuiteQL
chrome extension, you can build your query in the UI and just export it to code.
r
No I haven’t
s
Easiest way in my opinion.
r
Hmm okay Ill give that a shot