// The code below will display the email address of the person running the script Browser.msgBox(Session.getUser().getEmail());
//スクリプトを実行したユーザーのメールアドレスを取得して表示 function getEmail(){ Browser.msgBox(Session.getUser().getEmail()); } * 実行結果ではgetUserLoginId()とまったく同じ表示
// The code below will display the email address of the person running the script Browser.msgBox(Session.getUser().getUserLoginId());
//スクリプトを実行したユーザーのID(メールアドレスの@マークより前)を取得して表示 function getUserLoginId(){ Browser.msgBox(Session.getUser().getUserLoginId()); * 実行結果では@以下も表示