Hi, I'm having problems customizing emails. I would need some parts of the notification to be set dynamically, for example:
Dear "Bruce",
the "contractXXX" contract will expire on "30/05/2024". Please proceed with the renewal.
I tried with $this->finalclass$ $this->name will expire on $this->enddate$ but that didn't work.
Where can I find usable variables? I would also like to customize the sending of expiring licenses or obsolescent hardware. I also have difficulty with the recipient's email. regarding contracts I use the following OQL for contracts:
**"SELECT Contact AS C JOIN lnkContactToContract AS L ON L.contactid=C.id
WHERE L.contractid = :this->id"
But if I wanted to set a static address, what should I do? For example, contacts cannot be set in the licenses. How can I have them sent to the address "example@test.it" regardless of the contract/license?
Thanks everyone in advance for the help.
Last edit: Mas Axa 2024-05-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What do you mean by structure? Like the one above? To use properties of the object, it's always something like $this->attcode$ - and the attribute codes: you can see them in the datamodel.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I'm having problems customizing emails. I would need some parts of the notification to be set dynamically, for example:
Dear "Bruce",
the "contractXXX" contract will expire on "30/05/2024". Please proceed with the renewal.
I tried with $this->finalclass$ $this->name will expire on $this->enddate$ but that didn't work.
Where can I find usable variables? I would also like to customize the sending of expiring licenses or obsolescent hardware. I also have difficulty with the recipient's email. regarding contracts I use the following OQL for contracts:
**"SELECT Contact AS C JOIN lnkContactToContract AS L ON L.contactid=C.id
WHERE L.contractid = :this->id"
But if I wanted to set a static address, what should I do? For example, contacts cannot be set in the licenses. How can I have them sent to the address "example@test.it" regardless of the contract/license?
Thanks everyone in advance for the help.
Last edit: Mas Axa 2024-05-10
I believe it's
$this->end_date$
.The variables are based on the attitude codes. One quick (visual) way is in iTop to check out the Datamodel, and check out the specific class.
Just create a contact with that e-mail address :)
I created the contact, could you give me an example of a structure to use?
What do you mean by structure? Like the one above? To use properties of the object, it's always something like
$this->attcode$
- and the attribute codes: you can see them in the datamodel.