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 Reply Children
No Data