NotifyNow - getPreferredEmailAddress(GlideRecord user)

  • リリースバージョン: Washingtondc
  • 更新日 2024年02月01日
  • 読む1読むのに数分
  • ユーザーの優先メールアドレスを返します。

    表 : 1. パラメーター
    名前 タイプ 説明
    ユーザー GlideRecord または文字列 メールアドレスを取得するユーザーのユーザー レコードまたは sys_id。
    表 : 2. 返される内容
    タイプ 説明
    文字列 メールアドレスまたは null です。
    var userID = "some user sys id";
    var email = new SNC.NotifyNow().getPreferredEmailAddress(userID);
    gs.log('the preferred email address for sending email notifications is ' + email + ' for user with id: ' + userID);