Skip to main content
January 23, 2025
Question

Data not saving correctly in DB for username

  • January 23, 2025
  • 8 replies
  • 0 views

I have few record which I build them in Appian and save into DB. Below are records which I build in Appian which has "doddapap" my id for created by and updated by fields. But on writing these records DB these fields are getting updated with "Administrator.

 

Can Someone help me fixing this. 

    8 replies

    mathieud0001
    January 24, 2025

    Would need more context (screenshots) to determine the issue.

    January 24, 2025

    Hi, you can user to user function before saving to DB

    venkatrea696188
    January 24, 2025

    Need more context and try debugging through Process history of an instance , There might be a change you are updating these values again 

    January 24, 2025

    This is rule I'm passing in the PM to the process variable. I'm not passing any separate values for createdby and updatedby.. just building the record using requestid as input. 

    When I pass the request id in the rule it showing correct values for createdby and updatedby as in the 1st screenshot. 

    I have checked the Process History it is having Administrator.

    jayaprakashr0001
    January 24, 2025

    I think in the process model you gave like loggedInUser() for the CRETED_BY .change it to pp!initiator then you will get the username  in that field.

    stefanhelzle0001
    January 24, 2025

    Could it be that you called the loggedinuser() function inside the process context? This will always return the admin account.