Hi there,
I want to ask - Is there are mechanism to create notification for a specific Service Subcategory to a particular Team?
Trying to build such a thing, but with no luck.
I want to achieve that - when create ticket for SSC I want to send email notification, to:
TO: SELECT Person WHERE id = :this->caller_id
BCC: Here I want to put specific Team for the specific SSC
How can I do this?
Thank you in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
A simple way to do that would be to add a field (external key to team for example) in UserRequest that would be filled by code (OnInsert, OnUpdate, ... see CRUD methods sequentiallity [iTop Documentation] as a reference) whenever Service Subcategory is changed.
Then in a notification use that field to filter on Person.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Im so close to resolve this, when i prove my query:
SELECT Contact AS c
JOIN lnkContactToService AS lnk ON lnk.contact_id = c.id
WHERE lnk.service_name = :this->current_service_id
i have de right results but when a create a user request ticket, sendme this error "Error: Missing query argument: expecting = current_service->id, available = {0=>this->object()}"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
I want to ask - Is there are mechanism to create notification for a specific Service Subcategory to a particular Team?
Trying to build such a thing, but with no luck.
I want to achieve that - when create ticket for SSC I want to send email notification, to:
TO: SELECT Person WHERE id = :this->caller_id
BCC: Here I want to put specific Team for the specific SSC
How can I do this?
Thank you in advance
Hello,
A simple way to do that would be to add a field (external key to team for example) in UserRequest that would be filled by code (OnInsert, OnUpdate, ... see CRUD methods sequentiallity [iTop Documentation] as a reference) whenever Service Subcategory is changed.
Then in a notification use that field to filter on Person.
Im so close to resolve this, when i prove my query:
SELECT Contact AS c
JOIN lnkContactToService AS lnk ON lnk.contact_id = c.id
WHERE lnk.service_name = :this->current_service_id
i have de right results but when a create a user request ticket, sendme this error "Error: Missing query argument: expecting = current_service->id, available = {0=>this->object()}"
Where did you get current_service_id , unless you customized it?
Also mind that you seem to be attempting to compare a name (string) with an ID (usually integer).