Ava
01/14/2025, 9:59 PMCeligo AI
01/14/2025, 9:59 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** There could be several reasons why a user can't access an email template on an invoice record while other users with the same role can. Here are some possibilities: 1. Access to Email Templates: NetSuite allows the ability to control access to email templates. If a user can't see an email template, it might be because the access to that template is restricted. Someone with the right permissions will need to edit the template and review the Restrict Access subtab. 2. Role Permissions: The user might be missing the necessary permissions associated with their role. For example, the "Track messages" permission might be required to create/send a new email message from a transaction (invoice). If this permission is missing, the email button might not be available for that user. 3. Public vs Private Templates: If the issue is with creating public email templates, it might be because the role permission for Email template is set to "view" or "create". This would allow the user to view or create email templates, but not edit them. If you want users to create private templates but not public ones, you could use a workflow or a user event script to set the 'isprivate' field to true whenever a new template is created. Here's a sample user event script that sets the 'isprivate' field to true:
javascript
/**
* @NApiVersion 2.1
* @NScriptType UserEventScript
*/
define(['N/record', 'N/log'], function(record, log) {
function beforeLoad(context) {
if (context.type !== context.UserEventType.CREATE) {
return;
}
try {
var newRecord = context.newRecord;
if (newRecord.type === 'emailtemplate') {
newRecord.setValue({
fieldId: 'isprivate',
value: true
});
}
} catch (e) {
log.error({
title: 'Error setting isPrivate on Email Template',
details: e.toString()
});
}
}
return {
beforeLoad: beforeLoad
};
});
Remember to always check the user's role permissions and the access settings of the email templates when troubleshooting issues like this.Celigo AI
01/14/2025, 9:59 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.86826
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839314044
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833685338
Celigo AI
01/14/2025, 9:59 PM