<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font face="Roboto">Hi,</font></p>
    <p><font face="Roboto">we are running midPoint 3.6 and we'd like to
        remove the value of a multi-valued extion-attribute named "documentalVisibility"
        when another extension-attribute (named primaryOrganization) is
        changed.<br>
        <br>
        I thought that we could use
        <a class="moz-txt-link-freetext" href="https://wiki.evolveum.com/display/midPoint/Scripting+Hooks">https://wiki.evolveum.com/display/midPoint/Scripting+Hooks</a>.</font></p>
    <p><font face="Roboto">We can check if the attribute primaryOrganization
        is changed looking in <br>
        modelContext.getPrimaryChanges(), <br>
        but we cannot recreate a delete delta that </font>can be used
      in the <br>
      modelContext.getFocusContext().swallowToSecondaryDelta()...<br>
      <br>
      Can you help me?<br>
      <br>
      Thank you,<br>
      Marco</p>
    <p><br>
    </p>
  </body>
</html>