Workflow assign username to field
Question ID: 105767
0
0

In the Test Lab we have a custom field called "Created By" (CY_USER_TEMPLATE_03") that references the user list. When creating a new Test Set we would like to set the default value of that field to be the User that is currently logged into ALM.

I have tried a couple different options in the Template_TestSet_New section and seem to be missing the correct syntax for setting the default value.

I know it should be TestSet_Fields("CY_USER_TEMPLATE_03").value = ??? I’m just not sure of the ??? part. Can you help? 🙂

Marked as spam
Posted by (Questions: 122, Answers: 3)
Asked on December 29, 2014 2:55 pm
49 views
Answers (1)
1
Private answer

This can be done with the User object - UserName property. Please let me know if you have any questions.

Example:

TestSet_Fields.Field(''CY_USER_TEMPLATE_03'').Value = User.UserName
Marked as spam
Posted by (Questions: 3, Answers: 168)
Answered on December 29, 2014 2:56 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top