Hi,
Say i have an Authorisers table (Smartobejct) with 5 Authorisers in it with a department
User 1 - Sales
User 2 - Finance
User 3 - PPI Insurance sellers
User 4 - Marketing
User 5 - Dispatch
I want to be able to say if a Requestor sends a request, the Authorisation will go to multiple Authorisers in different departments, based on a GroupID
I have a Department Lookup table, which i've added a GroupingID column, so that i can tie Sales and PPI with the number 1
1) So using K2, i've created a form, added the fields and do an Initialize rule to get the AD attributes of the Locally logged in User (includes, name, userid, dept)
2) Then i added another rule: Smartobject get List method of my Lookup table to return the GroupID off the Requesters Department
3) Another Smartobject get list method on the Lookup with input as the GroupID, hoping to return all matches, but it's only returning the first Dept result... (output is a Data label on the form)
Any ideas how i return multiple results and then ?
1) A Requester (from Sales) submits a form.
2) Lookup the Requesters department in the Lookup table and find the Grouping ID (1 in this case)
3) Then do a reverse lookup on the Lookup table to find all Departments with the same Grouping ID (1 = Sales and PPI)
4) Send an Approval email to all members of an Authorisers group with a Department field which matches Sales or PPI
I know what i want to happen, but can this be done in K2 and passing variables, based on the GroupingID?
Thanks,