Workflow and ServiceDesk Community

 View Only
  • 1.  dialog workflow component question

    Posted Apr 17, 2013 03:11 PM

    I have a task component in my workflow that assigns to a specific group under 'task assignments'.  On the event configuration tab, start process, I have started an embedded decision model to send an email to someone (To: is hard coded).  What I would like to do is send the email to each user that belongs to the group I specified in the task assignments.  Can this be done within an embedded model and how would I accomplish this?

    thanks



  • 2.  RE: dialog workflow component question
    Best Answer

    Posted Apr 17, 2013 03:17 PM

    Quick way of the top of my head... you'll need the Group ID first, so assuming you have the Group Name, use the Get Group By Name component to fetch the Group ID.

    With the Group ID, call the Get Users In group component, passing the Group ID is input. This returns a string array of all user emails in that group.

    Once you have the result array, loop through it using a For Each Element In Collection and use a Send email to send the email.

    Another option is to just use a distribuion group email address (if one is set up) for a particular group.

    Hope this helps.



  • 3.  RE: dialog workflow component question

    Posted Apr 17, 2013 03:20 PM

    Reecardo is right. Using the Get Users in Group component, configured with the GroupId would work.

    One suggestion - After using the "Get Users In Group" component, instead of using a For Each Element In Collection to loop through each of the user e-mails, you can add an array of e-mail addresses to the send e-mail component.

    Doing this would allow you to add the array of e-mail addresses to a single component, and all users would get the same e-mail.



  • 4.  RE: dialog workflow component question

    Posted Apr 17, 2013 03:24 PM

    "Quick and dirty" screenshot of my suggestion (though just providing the array to one Send Email comp  like specified above would work as well - no need to loop)

    Untitled_0.png



  • 5.  RE: dialog workflow component question

    Posted Apr 18, 2013 04:45 PM

    Outstanding.  Seems to have worked.  the only thing I don't quite understand is how the output of <variable>.groupid in 'Get Users in Group' translates to an email address?