Unable to assign new task for user
Application Type
Reactive
Service Studio Version
11.10.19 (Build 41208)

Hi All,

I am not able to assign correct employeeId for the new task. 

The idea is to show particular employee only task which are assign to and user will also have possibility to add new task. 

My issue is while user add new task this task is not assign to him. The action looks like below:

Assign details: 

When I debugged this it turned out that the Tasks.EmployeeId is 0.

Could you please help me with this issue?

Thanks,

Pawel


Hi @Pawel Zawrotniak 

Put the assign before the first create or update and remove one of the create or update action.

Then on the assign change the fields. In your case you are setting the employeeId with the value from the list and we want the opposite

The action should be something like below



Regards

Gonçalo Almeida


Hi Pawel,

Can you share the oml. I couldn't recognize how you are exactly trying.

Regards,

Porselvan Gnanavelu.

If you are creating a new task, the aggregate is probably empty. 

The EmployeeId is the user with login? if true, use getUserId, otherwise, use a combobox to select from available employees.

Hi @Pawel Zawrotniak 

Put the assign before the first create or update and remove one of the create or update action.

Then on the assign change the fields. In your case you are setting the employeeId with the value from the list and we want the opposite

The action should be something like below



Regards

Gonçalo Almeida


Hi All,

Thank you for yours commitment.

@Goncalo Almeida Indeed the change of variables helps! Thank you!


Regards,

Pawel

@Pawel Zawrotniak yw.

Glad I could help.

Regards

Gonçalo Almeida

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.