Expand my Community achievements bar.

SOLVED

How can I automatically select the workflow executioner as an Alert's assignee?

Avatar

Level 1

I am currently trying to set up an Alert activity that automatically picks up the operator that has executed the workflow and selects him as assignee of the Alert.

The problem I am facing is that the Alert doesn't recognise any JS variable or instance variable (error: parameter not defined in the current context) , same happens with instance.currentOperator.name . 

 

pau_izquierdo_0-1643101201877.png

Do you know how could I could set this up in order to make it work? Any workarounds? It would also be OK for me to select the creator of the workflow instead of the executioner. 

 

Thanks for the help!

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @pau_izquierdo 

 

You can do this by forcing the "operator_id" to the id of the creator in the initialization script of the alert like this :

activity.operator_id = instance.createdBy_id

Br,

 

Amine

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @pau_izquierdo 

 

You can do this by forcing the "operator_id" to the id of the creator in the initialization script of the alert like this :

activity.operator_id = instance.createdBy_id

Br,

 

Amine