Greetings.
Please help me with correct oql if it possible!
I have request template with drop down field where i selecting person from Team
Is it possible to select person from this field as contact?
I need this for approval rule..
I tried this
SELECT Contact WHERE name LIKE :template->fieldcode
But getting error
Last edit: Alexander 2023-01-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You save my day, thanks a lot it works!
But can you please explain what is ":this->finalclass" i can't find info about it (finalclass) and for now it is hard to understand how it works
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
See the datamodel pages in your iTop, finalclass contains the actual child class of your objects. So for tickets this will be UserRequest or Incident for example, and for contacts this will be Person or Team.
Last edit: Hipska 2023-01-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As a reference : request templates data can be used in queries since the 2.1.0 version of the extension.
As a reference, there are some elements in the Q&A section of the extension documentation
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Greetings.
Please help me with correct oql if it possible!
I have request template with drop down field where i selecting person from Team
Is it possible to select person from this field as contact?
I need this for approval rule..
I tried this
SELECT Contact WHERE name LIKE :template->fieldcode
But getting error
Last edit: Alexander 2023-01-10
You probably get an error because
:template
isn't known for approval rule?Try the following:
Last edit: Hipska 2023-01-12
You save my day, thanks a lot it works!
But can you please explain what is ":this->finalclass" i can't find info about it (finalclass) and for now it is hard to understand how it works
See the datamodel pages in your iTop,
finalclass
contains the actual child class of your objects. So for tickets this will beUserRequest
orIncident
for example, and for contacts this will bePerson
orTeam
.Last edit: Hipska 2023-01-12
Thanks again for detailed explanation, there was 0 result on global search , but i found it now in TemplateFieldValueLnk Atributes
Hello,
As a reference : request templates data can be used in queries since the 2.1.0 version of the extension.
As a reference, there are some elements in the Q&A section of the extension documentation