Update callServer task endpoint
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
405914c586
commit
43a8d18541
1 changed files with 21 additions and 2 deletions
|
|
@ -58,13 +58,32 @@ try {
|
|||
}
|
||||
}
|
||||
|
||||
// Create task title and details
|
||||
taskTitle = "Service Request - " & tableName;
|
||||
// Get task type name if TaskTypeID provided
|
||||
taskTypeName = "";
|
||||
if (taskTypeID > 0) {
|
||||
typeQuery = queryExecute("
|
||||
SELECT tt_TaskTypeName FROM tt_TaskTypes WHERE tt_TaskTypeID = :typeID
|
||||
", { typeID: { value: taskTypeID, cfsqltype: "cf_sql_integer" } }, { datasource: "payfrit" });
|
||||
if (typeQuery.recordCount && len(trim(typeQuery.tt_TaskTypeName))) {
|
||||
taskTypeName = typeQuery.tt_TaskTypeName;
|
||||
}
|
||||
}
|
||||
|
||||
// Create task title and details - use task type name if available
|
||||
if (len(taskTypeName)) {
|
||||
taskTitle = taskTypeName & " - " & tableName;
|
||||
} else {
|
||||
taskTitle = "Service Request - " & tableName;
|
||||
}
|
||||
|
||||
taskDetails = "";
|
||||
if (len(taskTypeName)) {
|
||||
taskDetails &= "Task: " & taskTypeName & chr(10);
|
||||
}
|
||||
if (len(userName)) {
|
||||
taskDetails &= "Customer: " & userName & chr(10);
|
||||
}
|
||||
taskDetails &= "Location: " & tableName & chr(10);
|
||||
if (len(message)) {
|
||||
taskDetails &= "Request: " & message;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue