How can I automatically select the workflow executioner as an Alert's assignee? | Community
Skip to main content
January 25, 2022
Solved

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

  • January 25, 2022
  • 1 reply
  • 650 views

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 . 

 

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!

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Amine_Abedour

Hello @pau-izqui 

 

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

1 reply

Amine_Abedour
Community Advisor
Amine_AbedourCommunity AdvisorAccepted solution
Community Advisor
January 25, 2022

Hello @pau-izqui 

 

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

Amine ABEDOUR