I have a customer that needs to be able to dynamically assign Task Participants in Forms for an approval process. I've setup a SQL table that has a column for the user id and a column for the department they are responsible for. I then have a Lookup Rule that uses the department selected from a dropdown to fill another field, "Approver", with the user id of the associated approver from the SQL table. This lookup is functioning properly. I then assign the value from this "Approver" field to the Task Participants portion of a User Task. Once again, this part is working correctly. It assigns it dynamically based on the table, emails correctly, and allows them to approve/reject it.
The issue I have is if there is more than one approver I need to assign as a Task Participant. I am currently pulling all approver's user ID's into a multiline field with each seperated by a semicolon (e.g. JohnSmith@demo.com;JaneDoe@demo.com) and then trying to assign it as a Task Participant. It allows me to attempt this but shows a status of "Failed" when I try to run it. In the Application Event Logs it says "No participants are assigned for the user task: Approval. This error may occur if a user task is assigned using a variable that does not contain a valid username.". I assume it does not like the format with the semicolon delimiter.
Is there a different delimiter I should be using to pass multiple task participants in simultaneously or is it even possible? I understand I could have several fields (e.g. Approver1, Approver2, Approver3, ...) but am hoping to make this as dynamic as possible for this customer. Any help is appreciated.