- Thu Jul 27, 2017 12:00 pm
#794078
I'm getting an error in a process I'm trying to create and I'm not sure why..
I have created a Dynaform with a couple dropdown fields I am populating with SQL Queries
I am looking up a list of users based on group membership to populate the drop downs, so I can use the values for case assignment
@@NotifySupervisor
I thought maybe it's the USR_EMAIL it's objecting to so I changed the query to return USR_UID, then USR_USERNAME but no matter what value I populate that variable with I get the same error.
I have the managers and supervisors groups I am querying in the Assigned users List under assignment rules as I saw that in a previous thread on this topic.
Not sure what I am doing wrong. Any guidance would be appreciated.
Thank you
I've attached the Dynaform and project export if needed
I have created a Dynaform with a couple dropdown fields I am populating with SQL Queries
I am looking up a list of users based on group membership to populate the drop downs, so I can use the values for case assignment
@@NotifySupervisor
Code: Select all
@@NotifyMgmt
SELECT
users.USR_EMAIL,
CONCAT (users.USR_FIRSTNAME,' ', users.USR_LASTNAME) as NAME
from users inner join group_user on users.USR_UID = group_user.usr_uid inner join groupwf on group_user.grp_uid = groupwf.grp_uid where groupwf.grp_title = 'Supervisors' ORDER BY NAME;
Code: Select all
I created a report table to see what is going on, and the variable is being assigned a value, although I haven't done anything with it in my process yet. SELECT
users.USR_EMAIL,
CONCAT (users.USR_FIRSTNAME,' ', users.USR_LASTNAME) as NAME
from users inner join group_user on users.USR_UID = group_user.usr_uid inner join groupwf on group_user.grp_uid = groupwf.grp_uid where groupwf.grp_title = 'mfgmanagers' ORDER BY NAME;
I thought maybe it's the USR_EMAIL it's objecting to so I changed the query to return USR_UID, then USR_USERNAME but no matter what value I populate that variable with I get the same error.
I have the managers and supervisors groups I am querying in the Assigned users List under assignment rules as I saw that in a previous thread on this topic.
Not sure what I am doing wrong. Any guidance would be appreciated.
Thank you
I've attached the Dynaform and project export if needed
Attachments
Project Export
(136.49 KiB) Downloaded 318 times
(136.49 KiB) Downloaded 318 times
Dynaform
(11.45 KiB) Downloaded 296 times
(11.45 KiB) Downloaded 296 times
Last edited by Wilford on Fri Jul 28, 2017 10:52 am, edited 1 time in total.