Assign a user to a task in a process dynamically

Given a string containing a username (this can change easily to user first + last name),

I would like to assign a task.

I am using the following expression to get the user

=touser("Yoel.Feuermann-yoel.feuermann@zencargo.com", "-")[1])

if I try the above in a FORM - it works.

but If I have it in the assignment expression - it doesn't assign properly

it gets assigned, but to an empty user: 

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Yoel F

    Gotcha - though as a word of advice / caution, if there's any chance you can still change the way your data is structured, I'd strongly suggest you put those data points (username, email, etc) in a per-user CDT rather than stuffing everything into a flat text value.  I would expect doing it your current way might pretty quickly become unmanageable.

    BTW, were you able to verify whether the "assignment box" issue I described above is happening?

Children