Ava
05/27/2025, 5:28 PMCeligo AI
05/27/2025, 5:28 PMAI generated answer (using internal Slack threads):To pull the related transaction records on a support case using SuiteScript, you can use the
N/record
module's attach
method. This method allows you to attach one record to another.
Here is a basic example of how you can use the attach
method:
javascript
var record = require('N/record');
function attachRecord() {
var attachResult = record.attach({
record: {
type: 'salesorder',
id: '123'
},
to: {
type: 'supportcase',
id: '456'
}
});
}
In this example, a Sales Order with an internal id of '123' is being attached to a Support Case with an internal id of '456'.
Please note that you need to replace '123' and '456' with the actual internal ids of the records you want to attach.
Also, keep in mind that this operation might be somewhat complex since you have to pass both the sales order internal id and the case internal id to the workflow action script.
******
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
05/27/2025, 5:28 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.8443501
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821977615
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816242278
Celigo AI
05/27/2025, 5:28 PM