Aaron McCausland
10/09/2025, 3:37 AMCeligo AI
10/09/2025, 3:37 AMAI generated answer (using internal Slack threads):To get a join field's value from a search results object in Advanced PDF Templates, you need to ensure that the join field is included in the search results. In SuiteScript, you can use the
nlobjSearchColumn function to include join fields in your search results.
Here's an example of how you can include a join field in your search results:
javascript
var columns = [];
columns.push(new nlobjSearchColumn("externalid", "item")); // "item" is the join id
In the above example, "externalid" is the field id and "item" is the join id. This will include the "externalid" field of the "item" join in your search results.
Once you have included the join field in your search results, you can access it in your Advanced PDF Template using the following syntax:
html
${result.externalid}
In the above example, "externalid" is the field id of the join field. This will display the value of the "externalid" field of the "item" join in your Advanced PDF Template.
Remember to replace "externalid" and "item" with the actual field id and join id that you want to include in your search results and display in your Advanced PDF Template.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
10/09/2025, 3:37 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81274426
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801757932
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.800537169
Celigo AI
10/09/2025, 3:37 AM