Menu

Custom Data Collector

2025-03-07
2025-03-10
  • Xavier Prieur

    Xavier Prieur - 2025-03-07

    Hello,
    I would like, during the retention period, in addition to changing the status to disable, to empty the links to another class (lnkContactToMSOnLineLicence, represented by the msOnline_list field).

    I tried the following without success:
    <delete_policy_update_person>status:inactive;msOnline_list:RESET</delete_policy_update_person>
    <delete_policy_update_person>status:inactive;lnkContactToMSOnLineLicence:RESET</delete_policy_update_person>
    <delete_policy_update_person>status:inactive;msOnline_list:msonLinelicence_id:0</delete_policy_update_person>

    Does this seem possible?

    iTop version 3.2.0-2-14758 built on 2024-09-13 10:44:26
    MySQL: 10.11.10-MariaDB
    PHP: 8.2.25

     
  • Vincent @ Combodo

    Out of the box, I suspect that it's not possible to empty a linkedset field.
    There are various way for doing this, either within the collector, where you can code a REST call to do it or within iTop, with a callback on the Person EVENT_DB_AFTER_WRITE, always or just when done by a synchro, reset that ormLinkedSet.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.