Expand my Community achievements bar.

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

Avatar

Level 2

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

3 Replies

Avatar

Level 5

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

Community Advisor

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

Avatar

Level 2

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?