Hello,
help me figure out where i made a mistake with the setup.
I installed Itop 2.7.2-1-6483 on my own server, set up SMTP (google), test messages on email.test.php work, I get messages without problem. I want to notify the user who leaves a request for Helpdesk by mail, it seems to be nothing complicated, it could be done just in a few clicks in the GLPI, but in this situation I cannot cope with this task for several days.
I will describe the problem in a few words
create a person
create a user account
create a trigger
create a action
User create a tiket on portal, but notification not working, i get "No recipient" in notification status
For example, to send a notification to the person who is the “caller” of a ticket, the To field will contain: SELECT Person WHERE id= :this->caller_id
Seems like you want to send an email to the agent (not the caller)? Is the agent already assigned at that point? If not, it explains why there's no recipient: there is no agent yet.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for the reply!
Sorry for my English, i try to explain.
I have a couple of clients (Firms) whose users I would like to give the opportunity to leave requests through the portal. Naturally, the user must receive an email confirming that the request has been received and processed.
I understand now, that my users haven't got agent_id and these query
SELECT Person WHERE id = :this->agent_id
not working in my case. I'm confused
I understand, that the query must be like a
SELECT Person WHERE id = :this-> $usermail
i am righ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've not similar but weird issue, below query works in Run Queries but not for Action in trigger as action:
SELECT Person AS p
JOIN UserRequest AS u ON u.caller_id = p.id
WHERE u.id = :this->caller_id
Should notify User request owner when status of User Request has been changed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
help me figure out where i made a mistake with the setup.
I installed Itop 2.7.2-1-6483 on my own server, set up SMTP (google), test messages on email.test.php work, I get messages without problem. I want to notify the user who leaves a request for Helpdesk by mail, it seems to be nothing complicated, it could be done just in a few clicks in the GLPI, but in this situation I cannot cope with this task for several days.
I will describe the problem in a few words
Last edit: Pavel 2020-12-14
Seems like you want to send an email to the agent (not the caller)? Is the agent already assigned at that point? If not, it explains why there's no recipient: there is no agent yet.
Thank you for the reply!
Sorry for my English, i try to explain.
I have a couple of clients (Firms) whose users I would like to give the opportunity to leave requests through the portal. Naturally, the user must receive an email confirming that the request has been received and processed.
I understand now, that my users haven't got agent_id and these query
not working in my case. I'm confused
I understand, that the query must be like a
i am righ?
Try
SELECT Person WHERE id = :this->caller_idI've not similar but weird issue, below query works in Run Queries but not for Action in trigger as action:
SELECT Person AS p
JOIN UserRequest AS u ON u.caller_id = p.id
WHERE u.id = :this->caller_id
Should notify User request owner when status of User Request has been changed.
SELECT Person AS p
JOIN UserRequest AS u ON u.caller_id = p.id
WHERE u.id = :this->id
Will work better...
Yes, works, thanks,
One but, if Trigger status is "Being tested" got TEST () - Errors: Some recipients were invalid.
If "In production" all is good.