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

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

  • January 25, 2022
  • 1 respuesta
  • 661 visualizaciones

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!

 

 

 

Este tema ha sido cerrado para respuestas.
Mejor respuesta de 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 respuesta

Amine_Abedour
Community Advisor
Amine_AbedourCommunity AdvisorRespuesta
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