How to save loggedinuser in the cdt ?

hi  i need to display the logged in user in the text field and must save the name into the cdt .

Please follow the Screenshot

  Discussion posts and replies are publicly visible

Parents Reply
  • +1
    Certified Lead Developer
    in reply to swethasri

    The example you posted above might work except you didn't fill in the value for "employeeName" in your 'type!DSR_TimeSheetLineItem' call.

    That said, it might be a bit simpler to use the method Peter was recommending previously (just.. filled out correctly), in which you can ignroe the "value:" parameter and just declare the value in the a!save() call.

    addRowLink: a!dynamicLink(
      label: "Add Timesheet",
      saveInto: {
        a!save(
          target: ri!timeline,
          value: append(
            ri!timeline,
            'type!{urn:com:appian:types:DSR}DSR_TimeSheetLineItem'(
              employerName: loggedInUser()
            )
          )
        )
      }
    )

Children