Access to currentUser information in Custom JS

Forums Classic DFFS Access to currentUser information in Custom JS

Viewing 1 reply thread
  • Author
    Posts
    • #23772
      Peter Giesselink
      Participant

      In a rule I set the field value of a [Note] field with the following instruction in the Value field : “prepend:{CurrentUser:FirstName} {CurrentUser:LastName} {timestamp}/n{Comment}”
      This works perfect but I want to use a more complex function in the Custom JS section.

      My question is: Are there functions available in de dffs namespace which fetch the same user information as with the {currentUser} identifier?
      required fields are:
      {currentUser}
      {currentUser:FirstName}
      {currentUser:LastName}
      {currentUser:MobilePhone}
      {currentUser:WorkPhone}
      {currentUser:UserName}
      {currentUser:Department}
      {currentUser:EMail}

    • #23774
      Peter Giesselink
      Participant

      Looked in the wrong namespace, spjs.utility.userProfile() will do the job.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.