You are viewing limited content. For full access, please sign in.

Question

Question

Task participants specified as a variable

asked on March 5, 2015

Looking at a few posts on the Answers site (such as this,) it appears that some people have been able to figure out the proper way to specify a Task Participant from a variable.  Recognizing the variable needs to be in the same format as the user is specified as a Named User, I've tried specifying the variable in the following ways, each with limited success:

1) Domain\username

2) Full Name

3) Username

4) Email Address (as an Email Address field)

5) Full Name (Domain\username)

In each of these attempts, I experience the following error in the Event Viewer:

Message: No participants are assigned for the user task: <Task Name>. This error may occur if a user task is assigned using a variable that does not contain a valid user name.

I also went so far as to say the task is included in instance and task descriptions - the user I'm specifying is myself, so it's definitely a Named User that has access to this particular form.

Could someone point me in the right direction of how I'm specifying a variable incorrectly here?  Might it have something to do with the format of the field that I'm using as a variable in my form, or the format of how I'm specifying the actual user name?

A HUGE thank-you to anyone who can help us with this, as this has been driving us crazy for ages! angry

Marty Gaffney - Network Technician

Town of Okotoks

 

2 0

Answer

SELECTED ANSWER
replied on March 5, 2015

The way you need to specify the username value is based on the username of the user you are assigning the task to. For instance, we use both Forms LDAP Participant users and LF Named Users. Our Named users are setup in the Admin Console as Windows Accounts, so their username is like so 'domain\username'. For the LDAP Participant users, Forms uses their email address.

On our forms we have just a single line field to populate with the correct values.

In the Process Modeler in the User Task, it is setup like so to assign the correct task to the correct user:

The important thing here is how the values for the variables are formatted.

1 0
replied on May 11, 2015

I'm having the same problem. I'm pulling the user's supervisor and supervisor's email from an SQL table. Is there a way to do so directly through AD without having to go through a table?

0 0
replied on May 12, 2015

There is currently no way to query AD directly using Forms.

1 0
replied on May 22, 2015

We are new to LF so this may be a simple question (I hope).  When I set Task Participants to a Domain\UserID, the form works correctly.  When I set Task Participants to a variable that contains an email address, the form terminates.  

Here's an example:

 

 

 

When I review the Variables on the Results, the Supervisor_email contains a valid email address.

 

Any help is appreciated.  Thanks

1 0
replied on October 20, 2015

Blake,

 

How would this change if the email filed were inside a table with multiple (dynamic number of)  rows?

 

I have a table which can have 1 - 5 rows , and 1-5 approvers.

0 0
replied on October 20, 2015

I have not tested it with values in a table before, but I would imagine it would work the same way except you would use the variable of the field in the table instead. I'm not sure if it would populate the values from multiple rows though.

0 0
replied on February 5, 2016

Can you give an example of what a 4x4 username looks like?  Everything we have is based on "DOMAIN\username" in our organization.

0 0
replied on February 5, 2016

A 4x4 is what we call the username. For us, our AD accounts are named by using an employee's 4x4. First 4 of last name, first 4 of first name.

With what you are trying to do, you just need to have it in the domain\username format.

1 0
replied on February 5, 2016

Thanks, Blake.  Do you know if a user needs to be checkbox'd as "Named User", regardless of whether they are added to the LDAP Account?  I unchecked my Windows Account as a "Named User" and tried to add my account via "LDAP Accounts," but was not able to log in to access the forms.

BTW, thanks for your quick reply.

0 0

Replies

replied on March 5, 2015

THAT DID IT!  Thanks so much for pointing me in the right direction! laugh

1 0
replied on March 10, 2015

While I have you here, is there any way you could specify someone who isn't a Task Participant in this fashion, or does the person specified have to be a Task Participant, even for the purposes of simply receiving a notification that an action has occurred?

Thanks again for your assistance!

0 0
replied on March 10, 2015

You would use the same concept to take an email address using a variable that could then be assigned to a notification service task.

0 0
replied on March 10, 2015

Hmm - I tried using the same format (having a name as a variable, and an Email address as a variable), and the error message was the same, specifically "No Task Participants are assigned".  Might it need to be in a format different from above?

0 0
replied on March 10, 2015

The name option will not work. It would have to be a valid email address.

1 0
replied on March 10, 2015 Show version history

Never mind, I figured it out - I was trying to specify the Email address as a Task Participant with a User Task instead of having the Email address in the Send To text box with a Service Task.

Thanks much!

Marty

0 0
replied on February 9, 2016 Show version history

Can anyone confirm that one need not be a Named Users to initiate a form?

In other words, can any non-Named User initiate a form?  

It seems that even if you have LDAP set up, and while you can send LDAP users emails, you still have to be able to log in as a Named User in order to initiate a Form.  Please tell me I'm wrong! :D

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.