Comment to 'Developer Question'
  • Perhaps the instance of the profile was already called before. So for the actual info you may try to use:

    $aUserInfo = bx_srv('bx_persons', 'get_info', [$oAlert->iObject, false]);
    $sUserName = $aUserInfo['fullname'];