Menu

Create notification to a spcefic Service Subcategory

2022-02-04
2023-01-31
  • Nikola Milanov

    Nikola Milanov - 2022-02-04

    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

     
  • Pierre Goiffon

    Pierre Goiffon - 2022-02-21

    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.

     
  • Hugo HE

    Hugo HE - 2023-01-31

    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()}"

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-01-31

    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).

     

Log in to post a comment.

MongoDB Logo MongoDB