How to dynamically set an "Asignee" in the Alert activity

Avatar

Avatar

sanketp67190370

Avatar

sanketp67190370

sanketp67190370

13-05-2019

Hi,

We have a situation wherein we have created an alert and Users must receive that alert (mail) automatically or the user name should get populated as assignee. So we need to dynamically set the assignee and send them the alert (email).

Please provide some solutions for this.

Regards,

Sanket Phawde

Replies

Avatar

Avatar

pierrec70731455

Avatar

pierrec70731455

pierrec70731455

13-05-2019

Hi,

in the Advanded tab you can use the activity object to set the assignee :

activity.assigneeType=0;

activity.assignee_id=108275955;

assigneeType = 0 means Group and assigneeType = 1 is an Operator.

Kind regards,

Pierre

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

13-05-2019

This can also be generalized to all activity initialization/dynamic entry.

Avatar

Avatar

szymons55769873

Avatar

szymons55769873

szymons55769873

11-01-2021

Hi All

 

When I use the activity.assignee_id=108275955; approach it only works partially. When I first set it up and put a PK of operator it sends it OK that operator. But when I change the assignee_id to something else in the same workflow and send it again, it sends it to the first PK I specified, not the changed one.

Any hints?