Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

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