Why is "employeeID" NULL when i save it?

Certified Associate Developer

Hello guys, i have an issue when saving data into the record type. 

In my application i have following record types: 

1. Record Type "Employees" which contains "employeeID","firstName","lastName","email", ...

I have a interface where i can add this data, i created a process model that saves this data and it creates a basic user in appian based on this data

2. Record Type "Vacation Requests" which contains "requestID","employeeID","startDate","endDate","approved"

In my process model "Create Vacation Request", i added a script task which should store "employeeID" into "Vacation Requests" record type. 

I created an expression rule "EAA_GetCurrentUserID" whish contains: 

I use this query in my script task's Output tab to store logged in user's ID into my process variable and then store it in "employeeID" in my "Vacation Requests" record type.

Query returns current user's ID, so that works fine, but it is NULL when i try to save it into a record type. 

I was wondering if anyone has any ideas why this is happening, or if there is another better way to do this. 

Script Task:

Thanks for reading!

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    If your record type PV is of type multiple then we will face error message when we are trying to store any data into specific field of record type PV (looks like there is some issue ) 

    to resolve this you can either user a!update function to update specific field or you can perform null check for the Pv ,if there is value in the pv then try to map the value to the field if not skip the mapping

Reply
  • 0
    Certified Senior Developer

    If your record type PV is of type multiple then we will face error message when we are trying to store any data into specific field of record type PV (looks like there is some issue ) 

    to resolve this you can either user a!update function to update specific field or you can perform null check for the Pv ,if there is value in the pv then try to map the value to the field if not skip the mapping

Children
No Data