How shall I write the IQL so that it looks on the Attribute "Besigtiget" <Data> and "Intervaler" <Integer>. I want an mail every time "Besigtiget" is passed with the amount of Years given in "Intervaller"?
Hi Susanne,
It's not possible to create IQL like this. What you could do as a work around, would be to have an scheduled automation triggered based on the now() iql function, set this for an specified amount of days or weeks. When you then have objects matching this IQL, you can trigger what is needed, and also trigger an groovy script, that updates the Date value for the mentioned attribute so it can be re-triggered in the future.
You can read more about IQL at https://documentation.riada.se/insight/latest/insight-user-s-guide/iql-insight-query-language
There is an example on how to update object attributes using groovy script at https://documentation.riada.se/insight/latest/insight-for-developers/groovy-script-examples/automation-script-examples/update-an-object-attribute
And more on Automation at https://documentation.riada.se/insight/latest/insight-manager-s-guide/insight-automation
Best Regards
Alexander
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.