Vedachalam Mahadevan
05/14/2025, 3:49 AMCeligo AI
05/14/2025, 3:49 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems that you are trying to get the email of an employee from a Project Resource or Resource Allocation record. Unfortunately, the email field is not directly available on these records. However, you can get the employee's email by using a SuiteScript to load the Employee record associated with the Project Resource or Resource Allocation record. Here is a sample SuiteScript code:
javascript
var employeeId = record.getValue({
fieldId: 'employee' // Assuming 'employee' is the field id of the employee on your Project Resource or Resource Allocation record
});
var employeeRecord = record.load({
type: record.Type.EMPLOYEE,
id: employeeId
});
var employeeEmail = employeeRecord.getValue({
fieldId: 'email'
});
This script first gets the employee's internal id from the Project Resource or Resource Allocation record. Then it loads the Employee record using that id and finally gets the email from the Employee record.
******
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/14/2025, 3:50 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83730346
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833589911
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828650892
Celigo AI
05/14/2025, 3:50 AM