Eigenschaften

Beispiel für alle Eigenschaften

VBScript:

Dim oUser : Set oUser = cRM.CurrentProject.Users.CurrentUser

Dim bIsLoggedIn : bIsLoggedIn = oUser.IsLoggedIn

Dim sDepartment : sDepartment = oUser.Department

Dim sEmail : sEmail = oUser.Email

Dim sEmail2 : sEmail2 = oUser.Email2

Dim sFax : sFax = oUser.Fax

Dim sFirstName : sFirstName = oUser.FirstName

Dim sGroupNames : sGroupNames = oUser.GroupNames

Dim sLastName : sLastName = oUser.LastName

Dim sLoginName : sLoginName = oUser.LoginName

Dim sMobile : sMobile = oUser.Mobile

Dim sMobile2 : sMobile2 = oUser.Mobile2

Dim sPhone : sPhone = oUser.Phone

Dim sPhone2 : sPhone2 = oUser.Phone2

Dim sPicture : sPicture = oUser.Picture

Dim sPosition : sPosition = oUser.Position

Dim sShortName : sShortName = oUser.ShortName

Dim sSignature : sSignature = oUser.Signature

Dim sTitle : sTitle = oUser.Title

Dim sUserDefined1 : sUserDefined1 = oUser.UserDefined1

Dim sUserDefined2 : sUserDefined2 = oUser.UserDefined2

 

Call cRM.DialogMessageBox("Folgende Informationen sind für den aktuell angemeldeten Benutzer hinterlegt worden:" & vbCrLf & "Ist angemeldet: " & bIsLoggedIn & vbCrLf & "Login-Name: " & sLoginName & vbCrLf & "Anrede: " & sTitle & vbCrLf & "Name: " & sLastName & vbCrLf & "Vorname: " & sFirstName & vbCrLf & "Kurzname: " & sShortName & vbCrLf & "Position: " & sPosition & vbCrLf & "Abteilung: " & sDepartment & vbCrLf & "Telefon: " & sPhone & vbCrLf & "Telefon2: " & sPhone2 & vbCrLf & "Mobiltelefon: " & sMobile & vbCrLf & "Mobiltelefon2: " & sMobile2 & vbCrLf & "Telefax: " & sFax & vbCrLf & "E-Mail: " & sEmail & vbCrLf & "E-Mail2: " & sEmail2 & vbCrLf & "Zusatz1: " & sUserDefined1 & vbCrLf & "Zusatz2: " & sUserDefined2 & vbCrLf & "Unterschrift: " & sSignature & vbCrLf & "Bild: " & sPicture & vbCrLf & "Mitgliedschaften: " & sGroupNames, "User", vbOkOnly)

 

Set oUser = Nothing

C#-Script:

User user = cRM.CurrentProject.Users.CurrentUser;

bool isLoggedIn = user.IsLoggedIn;

string department = user.Department;

string email = user.Email;

string email2 = user.Email2;

string fax = user.Fax;

string firstName = user.FirstName;

string groupNames = user.GroupNames;

string lastName = user.LastName;

string loginName = user.LoginName;

string mobile = user.Mobile;

string mobile2 = user.Mobile2;

string phone = user.Phone;

string phone2 = user.Phone2;

string picture = user.Picture;

string position = user.Position;

string shortName = user.ShortName;

string signature = user.Signature;

string title = user.Title;

string userDefined1 = user.UserDefined1;

string userDefined2 = user.UserDefined2;

 

cRM.DialogMessageBox("Folgende Informationen sind für den aktuell angemeldeten Benutzer hinterlegt worden:" + System.Environment.NewLine + "Ist angemeldet: " + isLoggedIn + System.Environment.NewLine + "Login-Name: " + loginName + System.Environment.NewLine + "Anrede: " + title + System.Environment.NewLine + "Name: " + lastName + System.Environment.NewLine + "Vorname: " + firstName + System.Environment.NewLine + "Kurzname: " + shortName + System.Environment.NewLine + "Position: " + position + System.Environment.NewLine + "Abteilung: " + department + System.Environment.NewLine + "Telefon: " + phone + System.Environment.NewLine + "Telefon2: " + phone2 + System.Environment.NewLine + "Mobiltelefon: " + mobile + System.Environment.NewLine + "Mobiltelefon2: " + mobile2 + System.Environment.NewLine + "Telefax: " + fax + System.Environment.NewLine + "E-Mail: " + email + System.Environment.NewLine + "E-Mail2: " + email2 + System.Environment.NewLine + "Zusatz1: " + userDefined1 + System.Environment.NewLine + "Zusatz2: " + userDefined2 + System.Environment.NewLine + "Unterschrift: " + signature + System.Environment.NewLine + "Bild: " + picture + System.Environment.NewLine + "Mitgliedschaften: " + groupNames, "User", 0);

 

user.Dispose();