Dynamic Way to Create Groups/Users for Task Assignments

Certified Senior Developer

Hi All,

I have a list of task categories and group names who should work on each task.

Now I used to create appian groups & constants for each group names, so that I can assign a task based on task category.

But I want a dynamic way where even when the admin adds more task category and relevant group names, in future, I could do the task assignment and should send email.

Is there any workaround for this?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Create a mapping table with task_category, group_name, constant_name, group_id, created_flag, and email_addresses. When assigning tasks, query the table and if created_flag is false, use Create Group smart service to create the group, capture the returned group_id, then use Create Constant smart service to create the constant with this group_id as the value, store both the group_id and update created_flag to true.
    For subsequent assignments, use the stored group_id or constant for task assignment.
    For emails, use the stored email addresses dynamically.

Reply
  • 0
    Certified Lead Developer

    Create a mapping table with task_category, group_name, constant_name, group_id, created_flag, and email_addresses. When assigning tasks, query the table and if created_flag is false, use Create Group smart service to create the group, capture the returned group_id, then use Create Constant smart service to create the constant with this group_id as the value, store both the group_id and update created_flag to true.
    For subsequent assignments, use the stored group_id or constant for task assignment.
    For emails, use the stored email addresses dynamically.

Children
No Data