Emily S
09/09/2025, 2:21 PMCeligo AI
09/09/2025, 2:21 PMAI generated answer (using internal Slack threads):In NetSuite, when a project record is created from a template, the information about the template used is not directly stored in the project record. However, you can infer this information by comparing the project record's fields and values with those of the available templates. If you have a limited number of templates and each has a unique combination of fields and values, you can create a SuiteScript that loads each template, compares it with the project record, and identifies the matching template. Here's a basic example of how you might do this:
javascript
var projectRecord = record.load({
type: record.Type.PROJECT_TASK,
id: 'your_project_record_id'
});
var templates = ['template1_id', 'template2_id', 'template3_id']; // replace with your actual template IDs
for (var i = 0; i < templates.length; i++) {
var templateRecord = record.load({
type: record.Type.PROJECT_TEMPLATE,
id: templates[i]
});
// Add your comparison logic here. If the projectRecord and templateRecord match,
// then you've found the template that the project was created from.
}
Please note that this is a simplified example and you would need to add your own logic to compare the records based on your specific requirements.
******
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
09/09/2025, 2:22 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799926758
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.798950195
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.796630859
Celigo AI
09/09/2025, 2:22 PM